it-crowd / pom-sorter

Plugin for IntelliJ Idea to sort pom.xml
4 stars 9 forks source link

sort comment #11

Closed BorzdeG closed 11 years ago

BorzdeG commented 11 years ago

If the inside of the unit is the first comment, I'd like to keep it first (relevant only to the first comment in the block)

before sorting:

        <mirror>
            <!-- United States, St. Louis-->
            <mirrorOf>central</mirrorOf>
            <url>http://repo1.maven.org/maven2</url>
            <id>Central</id>
        </mirror>

after sorting (for now):

        <mirror>
            <id>Central</id>
            <!-- United States, St. Louis-->
            <mirrorOf>central</mirrorOf>
            <url>http://repo1.maven.org/maven2</url>
        </mirror>

after sorting (would like to):

        <mirror>
            <!-- United States, St. Louis-->
            <id>Central</id>
            <mirrorOf>central</mirrorOf>
            <url>http://repo1.maven.org/maven2</url>
        </mirror>
blabno commented 11 years ago

Thank you for suggestion. Unfortunately this is against rule that comment should stick with closes following tag. Put your comment above .

BorzdeG commented 11 years ago

transferred to the end block comments according to http://docs.codehaus.org/display/MAVENUSER/Mirrors+Repositories. issue can be closed