-
Notifications
You must be signed in to change notification settings - Fork 21
XML Attributes with newline are not handled consistently #7395
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7395?orig=1 |
Joshua Backfield (jbackfield) said: |
@rklaehn said: So why not just fix this? I know scala.xml is on the way to deprecation. But a lot of people are still using it. Especially given that there is no official replacement, and it is still shown in the examples in all the books such as "Programming in Scala". |
@SethTisue said: Interested community members: if you consider this issue significant, feel free to open a new issue for it on GitHub, with links in both directions. |
See the two instances I have below (taken from REPL)
Native XML handling, preserves the newline character.
XML.loadString, however, converts to a newline.
As such, the XML blocks are not equal.
Newlines NOT inside of attributes are preserved in both instances are are equal as such.
The text was updated successfully, but these errors were encountered: