You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That works, thanks! Are there no options to control this? I thought some of the options affected the newlines within the string, just not at the front or the end.
xml:space="preserve" is a standard XML directive, and the XML framework that I use supported it, so there was no need to re-invent the wheel 😀.
I don't know if using newlines in XML elements is such a common case. I tend to use separator characters when possible to avoid the problem altogether, e.g ,:;.
I'm running the enforcer plugin and have this config in my pom.xml.
After formatting with sortpom, this xml becomes:
I have
<keepBlankLines>true</keepBlankLines>
so I was expecting these newlines to be kept.The text was updated successfully, but these errors were encountered: