Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior when XML tags included in strings #4

Open
imReker opened this issue Feb 15, 2023 · 1 comment
Open

Unexpected behavior when XML tags included in strings #4

imReker opened this issue Feb 15, 2023 · 1 comment

Comments

@imReker
Copy link

imReker commented Feb 15, 2023

  1. The order of statements gets messed up.
  2. XML tags in the string will produce unexpected new line.
  3. XML namespace is expanded to every tags.

For example:

<?xml version="1.0"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="test">aaaaa<xliff:g>%s</xliff:g>bbbbb<font size="22">ccccc</font></string>
</resources>

will be translated to

<?xml version="1.0"?>
<resources>
  <string name="test">
    <xliff:g xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">%s</xliff:g><font size="22">ccccc</font>aaaaabbbbb
  </string>
</resources>

谢谢

@wilinz
Copy link
Owner

wilinz commented Feb 15, 2023

Problem to be investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants