twosigma / twosigma/beakerx

The `trimIndent` function of the text package in Kotlin doesn't behave as expected

Open
#8,167 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
2.9k
Forks
383
PR merge metrics
No merged PRs in 30d

Description

You can refer to the 2nd example in the link below.
http://www.legendu.net/misc/blog/string-functions-kotlin/#trimIndent

According to the doc,
the result of
```
val sql ="""
select
*
from
some_table
where
id = 100
order by
id
""".trimIndent()
sql
```
should be
```
select
*
from
some_table
where
id = 100
order by
id
```
while the Kotlin kernel outputs
```
select
*
from
some_table
where
id = 100
order by
id
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.