hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.02k stars 406 forks source link

White space not preserved in the editable `.svg` diagram #418

Open mihaiconstantin opened 5 months ago

mihaiconstantin commented 5 months ago

I am unsure whether this is intended or not. However, I noticed that leading whitespace is not preserved when viewing the editable .svg diagram in web browsers. If I explicitly export the diagram as .svg, it shows the white space correctly, until a subsequent edit.

Could it be that the editor uses   for non-breaking whitespace, which is not supported in .svg?

https://github.com/hediet/vscode-drawio/assets/20051042/74d4697c-9011-4b9e-8137-40eac08e61f0