-
-
Notifications
You must be signed in to change notification settings - Fork 904
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
newlines treated differently in pure java implementation #444
Comments
This is not a stupid bug. This is a rather serious parsing problem. Java version creates Text node of "\n" as a sibling of element p, while libxml version doesn't. I'll have a look. |
If I remember right, there's modes in most of the Java parsers to preserve all whitespace or not. I think that's what's at play here. |
@headius Xerces does have that option. But, xerces needs schema (grammar) to treat whitespaces. If no schema is given, ignore whitespace option does nothing. Xerces is really strict. |
This should be closed. |
kind of a stupid bug to be reporting, but its breaking some tests that assume the MRI behavior.
in MRI, newlines appear to be stripped:
in the java version, the newline is passed through to the output:
The text was updated successfully, but these errors were encountered: