lishu / vscode-svg2

A vscode svg langauge support extension
MIT License
200 stars 10 forks source link

How to ignore document formatting in lines or files? #153

Open s-varenia opened 1 year ago

s-varenia commented 1 year ago

How to ignore document formatting in lines or files?

I need:

<text x="1em" y="1em">
    <tspan dx="0em" dy="0em">123</tspan><tspan dx="0em" dy="0em">45</tspan>
</text>

But after formatting, tspan wraps to a new line, which adds a space to the SVG.

<text x="1em" y="1em">
    <tspan dx="0em" dy="0em">123</tspan>
    <tspan dx="0em" dy="0em">45</tspan>
</text>
lishu commented 1 year ago

The current formatting is implemented using the vscode HTML service, and this customization is not possible at this time