\\\\ resolves to just \

0 votes
asked Feb 8, 2021 in Bug by Martin (8,360 points)
edited Feb 8, 2021 by Martin

In the example JSON two-character escape sequence on https://plantuml.com/json

@startjson
{
 "reverse solidus character (U+005C)":       ["\\\\", "a\\b"]
}
@endjson

displays as:

But I would have expected the top box to be "\\" not just "\".  

Edit: Also - see Th's note below with similar issues for \\n, \\r, \\t.

PS The full example also has a typo "beetwen"

commented Feb 8, 2021 by The-Lu (63,920 points)

Hello M.,

Yes it is a bug, because the maim goal is to have in final '\\' as 'a\\b'.

I didn't have time to open a new defect, I just mentioned on the doc. page :

FIXME
Or not , on the same item as \n management in PlantUML wink
FIXME

See all errors on test on JSON two-character escape sequence :

@startjson
[
"\\\\",
"\\n",
"\\r",
"\\t"
]
@endjson

And thank for the typo, I correct immediately.

Regards,
Th.

commented Feb 8, 2021 by Martin (8,360 points)
edited Feb 8, 2021 by Martin
Oops, sorry, didn't see the FIXME note.  Good work Th!  I turned my question into a bug report.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...