Skip to content

Trailing whitespace is stripped from string literal containing a line break #1699

@jeremypw

Description

@jeremypw

What Happened?

Using a string literal such as

var test = """This is a string literal ................            
.............with trailing space""";

(where .... represents whitespace) with strip trailing space on results in the trailing space after "literal" to be removed which changes the value
of the string.

Steps to Reproduce

See above

Expected Behavior

Trailing white space between triple quotes should not be stripped.

OS Version

8.x (Circe)

OS Architecture

amd64 (on most hardwares)

Session Type

Secure Session (Wayland, This is the default)

Software Version

Latest release (I have run all updates)

Log Output

Hardware Info

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions