ivanceras / svgbob

Convert your ascii diagram scribbles into happy little SVG
http://ivanceras.github.io/svgbob-editor/
Apache License 2.0
3.83k stars 108 forks source link

XML parsing errors on generated svg #108

Open Essenceia opened 10 months ago

Essenceia commented 10 months ago

Hello,

First of all I would like to thank you for building such a great tool.

I am encountering a bug using the online tool when translating the less than < character at the end of a text section. This produces the following xml :

<text x="26" y="44" ><</text>
                     ^^

Ascii to reproduce :

┌───┐
│   │
│  <│
└───┘

I am personally side stepping this bug by replacing these << with an utf8 equivalent in post processing :

sed -i 's/<</\&#x003c;</g' bob.svg

This replaces << with &#x003c;<.

Thanks for your work