XliffParser icon indicating copy to clipboard operation
XliffParser copied to clipboard

Support for whitespace in resx

Open codito opened this issue 7 years ago • 1 comments

If a resx file has an entry like below:

  <data name="WhitespaceCharacter" xml:space="preserve">
    <value> </value>
  </data>

Output xlf file will have the following:

      <trans-unit id="WhitespaceCharacter">
        <source> </source>
        <target state="new"></target>
        <note></note>
      </trans-unit>

Expectation: output xlf file should preserve the space and have <target state="new"> </target>

The tool (version 0.1.2) is run with following command line: xlftool update -resx resource.resx -xlf resource.cs.xlf -verbose

codito avatar Oct 19 '16 02:10 codito