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

Sub-elements of sub-elements with a text value indent strangely #13

Open
bocajspear1 opened this issue Jul 20, 2013 · 0 comments
Open

Comments

@bocajspear1
Copy link

XML String without being indented: <root><one>TEXT<two>TEXT</two></one></root>

What I would expect when indented:

<root>
  <one>
    TEXT
    <two>TEXT</two>
  </one>
</root>

What I get from ElementTree.write:

<root>
    <one>TEXT        <two>TEXT</two>
</one>
</root>

If I remove the text value from the 'one' tag, everything indents properly

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

1 participant