Community
Participate
Working Groups
Build ID: I20080617-2000 Steps To Reproduce: 1. Create an xml file with this content: <test> <e><!-- --></e> </test> 2. open with the xml editor and format it... 3. the result is: <test> <e><!-- --> </e> </test> ... while the expected result is to have the document unchanged. Apart from the fact that this kind of formatting is pretty ugly, it's different from what you get with the previous versions of eclipse/wtp (where the doc is formatted as expected). I could'nt find any setting for this behaviour, nor any workaround to keep the previous formatting style, it's very annoying when working on a project where you are required to keep a consistent formatting between developers... More information:
This looks like this is expected behavior in the current formatter. As there is an existing comment in there. I do agree though from a person that uses XML everyday, having the comment not break onto a seperate line is kind of ugly, and not typically what other XML editors do. There should be a toggle that allows for selection of how to handle these types of elements. I would expect to see the following when it formats: <test> <e> <!-- --> </e> </test> Or <test> <e> <!-- --> </e> </test>