sortpom icon indicating copy to clipboard operation
sortpom copied to clipboard

Newlines aren't kept at beginning or end of String content.

Open motlin opened this issue 1 year ago • 0 comments

I'm running the enforcer plugin and have this config in my pom.xml.

                                    <unCheckedPluginList>
                                        org.apache.maven.plugins:maven-site-plugin,
                                        org.apache.maven.plugins:maven-deploy-plugin
                                    </unCheckedPluginList>

After formatting with sortpom, this xml becomes:

                                    <unCheckedPluginList>org.apache.maven.plugins:maven-site-plugin,
                                        org.apache.maven.plugins:maven-deploy-plugin</unCheckedPluginList>

I have <keepBlankLines>true</keepBlankLines> so I was expecting these newlines to be kept.

motlin avatar Jul 02 '24 18:07 motlin