lishu / vscode-svg2

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

Formatting: Breaking long text into multiple lines adds unnecessary spaces. #176

Open emiperez95 opened 2 months ago

emiperez95 commented 2 months ago

When i format the following code

<text><tspan x="10" y="10">Here is a long long line that is meant to be a single line and not broken into pieces; also there is more text here</tspan></text>

I get this, that ends up adding unnecessary spaces within the sentence.

<text>
  <tspan x="10" y="10">Here is a long long line that is meant to 
  be a single line and not broken into pieces; 
    also there is more text here</tspan>
</text>

Expected outcome:

<text>
  <tspan x="10" y="10">Here is a long long line that is meant to be a single line and not broken into pieces; also there is more text here</tspan>
</text>

or

<text>
  <tspan x="10" y="10">
    Here is a long long line that is meant to be a single line and not broken into pieces; also there is more text here
  </tspan>
</text>