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

Don't strip whitespace in xml text values #46

Merged
merged 1 commit into from
Apr 25, 2020
Merged

Conversation

imoore76
Copy link
Contributor

It is not part of the XML spec to strip spaces from tag values. This is causing problems in a project I'm working on where things like:

<string>W3lcOme\ </string>

become

"W3lcOme\"

I tried to justify it by attempting to find something in the specification that says whitespace should be stripped, but all I could find was contrary documentation saying whitespace in tag text should be preserved.

@imoore76
Copy link
Contributor Author

This fixes #41

@sanand0 sanand0 merged commit 20817db into sanand0:master Apr 25, 2020
@sanand0
Copy link
Owner

sanand0 commented Apr 25, 2020

Thanks, @imoore76

I've merged and released 0.2.1 on PyPi

@FeehGb
Copy link

FeehGb commented Aug 24, 2020

What if I need the old behavior ?

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

Successfully merging this pull request may close these issues.

3 participants