lewish / asciiflow

ASCIIFlow
https://asciiflow.com
MIT License
4.67k stars 360 forks source link

Spaces broken during export #211

Open 2br-2b opened 2 years ago

2br-2b commented 2 years ago

Hi,

When exporting https://asciiflow.com/#/share/eJyrVspLzE1VssorzcnRUcpJrEwtUrJSqo5RqohRsjI0MDDUiVGqBDKNDUyBrJLUihIgJ0ZJAQweTdmDH8XE5MFVKsAAurhbYnJJflElhjgO9Sho2q5HUxqQEEIlVHkTTODRlB5UpUC0BUNkAkJ5E4Y5GEag6Z%2BAaQl2G0CGBxTlp5Qml4AtQubD7WpSqK%2Bvzy8CEjAlMD6SEkTYQZTA%2BHAlUzAcgIxmKBBSAVIUo1SrVAsAE%2BgRPQ%3D%3D)

Which looks like:

image

I get this output:

      ┌─────────┐
      │         │
      │ Factory │
      │         │
      └────▲────┘
           │
     ┌─────┴─────┐
     │           │
┌────┴────┐ ┌────┴─────┐
│ Product │ │ Product  │
│ or│ │ or │
│ Factory │ │ Factory  │
└─────────┘ └──────────┘

Shown on the export page and other editors as image

ade-sede commented 2 years ago

When I click your link, I see Unicode in your boxes. When exporting, I get the same result as you do. After removing these Unicode characters, the ASCII export works just fine for me.

Did you voluntarily put Unicode in there or is this a bug ?

2br-2b commented 2 years ago

This is a bug - I didn't voluntarily enter it.

lewish commented 6 months ago

Looks like these are DEL characters, not sure how you are getting those in there. The related issues are all carriage returns.