Skip to content

put triple-string literals on same line if it fits (fixes #94) - #115

Merged
arnetheduck merged 2 commits into
masterfrom
triple
Jan 18, 2026
Merged

put triple-string literals on same line if it fits (fixes #94)#115
arnetheduck merged 2 commits into
masterfrom
triple

Conversation

@arnetheduck

Copy link
Copy Markdown
Owner

Instead of counting triple-string literals as monoliths, detect how long their first line is and use it to fit it on a single line, when possible

const str =
  """x
"""

becomes

const str = """x
"""

Instead of counting triple-string literals as monoliths, detect how long
their first line is and use it to fit it on a single line, when possible

```nim
const str =
  """x
"""
```
becomes

```nim
const str = """x
"""
```
@arnetheduck
arnetheduck merged commit f12c27c into master Jan 18, 2026
6 checks passed
@arnetheduck
arnetheduck deleted the triple branch January 18, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant