Skip to content

Java text block parser mangles a char on escaped eol #12575

Closed
scala/scala
#10024
@som-snytt

Description

@som-snytt

Reproduction steps

Scala version: 2.13.8

    final static String simpleString = """
X\
Y
""";

Problem

The test sees

00000360  0a 22 22 22 3b 0a 0a 3d  3d 3d 3d 0a 00 59 0a 0a  |.""";..====..Y..|
00000370  3d 3d 3d 3d 0a 0a 3d 3d  3d 3d 0a                 |====..====.|

or

====
^@Y

====

instead of expected XY. The existing test drops a space char that is hard to spot. (Edit: now I count 8 spaces. Space blindness?)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions