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

Does not keep newline at end of file and xml header #26

Closed
ypresto opened this issue Jul 9, 2015 · 1 comment
Closed

Does not keep newline at end of file and xml header #26

ypresto opened this issue Jul 9, 2015 · 1 comment
Assignees

Comments

@ypresto
Copy link

ypresto commented Jul 9, 2015

Unnecessary change is applied when remover modifies content of xml files.

-<?xml version="1.0" encoding="utf-8"?>
+<?xml version='1.0' encoding='UTF-8'?>
-</resources>
+</resources>
\ No newline at end of file
@ypresto ypresto changed the title Keep newline at end of file and xml header Does not keep newline at end of file and xml header Jul 9, 2015
@ca77y ca77y self-assigned this Jul 9, 2015
@ca77y
Copy link
Contributor

ca77y commented Jul 27, 2015

we use lxml for parsing and it will unfortunately strip whitespace characters after and before root element. https://bugs.launchpad.net/lxml/+bug/526799

@ca77y ca77y closed this as completed Jul 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants