vscode-xml icon indicating copy to clipboard operation
vscode-xml copied to clipboard

Added spaces before CDATA

Open tlueder opened this issue 2 years ago • 0 comments

Description

Before formatting

  <trans-unit id="general.mobile" resname="general.mobile">
    <source>Mobile <![CDATA[(<768px)]]></source>
    <target>Mobil <![CDATA[(<768px)]]></target>
  </trans-unit>

After formatting first time

  <trans-unit id="general.mobile" resname="general.mobile">
    <source>Mobile           <![CDATA[(<768px)]]></source>
    <target>Mobil           <![CDATA[(<768px)]]></target>
  </trans-unit>

After formatting a second time

  <trans-unit id="general.mobile" resname="general.mobile">
    <source>Mobile                     <![CDATA[(<768px)]]></source>
    <target>Mobil                     <![CDATA[(<768px)]]></target>
  </trans-unit>

More spaces are added each time

Formatter Implementation

Which XML Formatter implementation are you using (the value of your xmlTools.xmlFormatterImplementation setting). v2

XML Tools Version

What version of XML Tools are you using? XML Tools v2.5.1

VS Code Version

What version of VS Code are you using? Version: 1.68.1

Operating System

What OS (and version) are you using? MacOS 12.4

tlueder avatar Jul 05 '22 12:07 tlueder