Label string containing \\n does not escape properly
Closed this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Use the following diagram source.
HOST <- SLAVE [label = "OK\\n"];
2. Use the following command to generate diagram.
$ mscgen -T png -i console1.mscgen.txt -o console1.mscgen.txt.png
3. The diagram shows the text above the arrow: OK\
What is the expected output? What do you see instead?
The expected result is the diagram should show the text above the arrow: OK\n
What version of mscgen are you using? On what operating system?
0.20 on WinXP+mingw/msys
from windows installer
Please provide any additional information below, including sample input
file:
If the following is used instead,
HOST <- SLAVE [label = "OK\\ n"];
then the diagram shows the text above the arrow as expected: OK\\ n
If the following is used instead,
HOST <- SLAVE [label = "OK\ n"];
then the diagram shows the text above the arrow as expected: OK\ n
Original issue reported on code.google.com by jncline@gmail.com
on 12 Oct 2011 at 5:10
GoogleCodeExporter commented
Should be an easy fix.
Original comment by Michael....@gmail.com
on 13 Oct 2011 at 8:33
GoogleCodeExporter commented
This issue was closed by revision r198.
Original comment by Michael....@gmail.com
on 22 Jul 2012 at 9:31
- Changed state: Fixed