Skip to content

Single line literal - #759

Merged
SimonCropp merged 2 commits into
mainfrom
single-line-literal
Aug 14, 2026
Merged

Single line literal#759
SimonCropp merged 2 commits into
mainfrom
single-line-literal

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

No description provided.

A raw string spends three lines and an indentation rule to carry one line of
content, so Render picks the form: a regular literal (escaping what that form
cannot hold verbatim) when the content is one line, the raw one otherwise.
The argument still starts on the line below the open paren either way.
Only the raw form needs a line of its own, so its opening delimiter lines up
with the content and the closing one. A regular literal has nothing to line up
with, so it stays in the argument list.
@SimonCropp
SimonCropp merged commit 975c246 into main Aug 14, 2026
8 checks passed
@SimonCropp
SimonCropp deleted the single-line-literal branch August 14, 2026 11:19
@github-actions
github-actions Bot restored the single-line-literal branch August 14, 2026 11:20
@SimonCropp
SimonCropp deleted the single-line-literal branch August 21, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant