\\\\ resolves to just \

0 votes
asked Feb 8, 2021 in Bug by Martin (9,120 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 (89,080 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 (9,120 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.

1 Answer

0 votes
answered Oct 19, 2024 by xiaoqi (700 points)
any progress on this ?
...