-
Notifications
You must be signed in to change notification settings - Fork 92
leafTag is unused in PrettyPrinter.scala #46
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
Interesting about the unused
It seems that the Pretty-printer has inherited this behavior from the standard writer for at least the last 10 years. I guess this raises, "What is the definition of 'pretty-printing' with respect to empty elements?" Are they preserved or not? I suppose this should be configurable in a pretty-printer at the very least. |
Previous discussion on this http://comments.gmane.org/gmane.comp.lang.scala.xml/44 . Also what do other prettyprint ( different tool, language) do ? I.e. do they print or ? |
Sure seems like a bug to me. |
I made a commit in #90 that adds a Boolean parameter to |
Checking why the build is failing. |
Thanks @biswanaths! Turns out typesafehub/migration-manager checks for binary compatibility issues. I don't have access to openjdk6, but I can try to use an Oracle 6 JDK and see if I can avoid the error.
|
The optional argument of |
Merging #90, then the |
This fix was released in 1.1.0 today, and I've updated the information on the stackoverflow post. Thanks for reporting this issue. |
haha jinx |
Thank you! |
Was formatting an XML file and noticed that the PrettyPrinter adds closing XML tags to leaf tags instead of retaining it's correct '/>' format. It looks like the class does contain a leafTag function but does not use it.
Issue and potential fix outlined here: http://stackoverflow.com/questions/6044883/scala-xml-prettyprinter-to-format-shorter-node-when-there-is-no-text-in-it
The text was updated successfully, but these errors were encountered: