facebook

xml attributes on each line

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #232402 Reply

    slackorama
    Member

    There seems to be a problem with the formatting of XML documents (or perhaps my understanding of how it should work).

    I have the “Split multiple attributes each on a new line” feature enabled, yet attributes are sharing the line. for instance:

    <cache name="cacheName" maxElementsInMemory="10000" eternal="false" timeToLiveSeconds="300" overflowToDisk="false" />

    becomes

    <cache name="cacheName" maxElementsInMemory="10000" eternal="false"
            timeToLiveSeconds="300" overflowToDisk="false" />

    I have the same feature enabled in the Ant editor and that line gets formatted to:

    <cache name="cacheName"
               maxElementsInMemory="10000"
               eternal="false"
               timeToLiveSeconds="300"
               overflowToDisk="false" />

    This is what I expect for each attribute to be on its own line. Is it me or MyEclipse?

    I’m running Eclipse 3.1 with MyEclipse 3.9.210.

    Thanks in advance.

    #232433 Reply

    Riyad Kalla
    Member

    This is a low priority bug we have filed, sorry you ran into this, we hope to get things like this fixed in 5.0

    #248616 Reply

    I have a slightly different issue..
    I am running myeclipse
    Version: 4.0.3 GA
    Build id: 20051025-4.0.3-GA
    and eclipse
    Version: 3.1.1
    Build id: M20050929-0840

    I selected “Split multiple attributes each on a new line” and it worked fine, but i decided to chage back to having this unchecked, but there is no change to the end formatting, i.e. it is still putting new attributes on new lines. How do i unselect this after selecting it, or is this another bug??

    #248621 Reply

    Riyad Kalla
    Member

    Jim,
    The problem is most likely that it won’t un-split lines back onto a single line it just will stop splitting them if they are already a single line. So try putting a tag back into a single line and reformatting with that setting OFF, it should leave the line alone.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: xml attributes on each line

You must be logged in to post in the forum log in