facebook

XML Format Issue

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

    Robert Hible
    Member

    When running the format from the xml editor, the xml appears to be misformated. For instance the following before format:

    
        <bean id="tilesConfigurer"
            class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
            <property name="definitions">
                <list>
                    <value>/WEB-INF/jsp/layouts/layouts.xml</value>
                    <value>/WEB-INF/jsp/adapter/views.xml</value>
                    <value>/WEB-INF/jsp/adapter/daily/views.xml</value>
                </list>
            </property>
    

    Then ctrl-shift-f or right click source->format the output is produced

    
        <bean
            id="tilesConfigurer"
            class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
            <property
                name="definitions">
                <list>
                    <value>/WEB-INF/jsp/layouts/layouts.xml
                    </value>
                    <value>/WEB-INF/jsp/adapter/views.xml
                    </value>
                    <value>/WEB-INF/jsp/adapter/daily/views.xml
                    </value>
                </list>
            </property>
        </bean>
    

    I would not expect whitespace added to the end of the content in the

    <value></value>

    tags.

    Does anyone know if there is a way to change this behavior? I’m so use to ctrl-shift-f then ctrl-s that I end up causing issues in my spring configuration files.

    thanks,
    Aaron

    #297560 Reply

    Loyal Water
    Member

    Does anyone know if there is a way to change this behavior? I’m so use to ctrl-shift-f then ctrl-s that I end up causing issues in my spring configuration files.

    I’m sorry you ran into this issue. This is a known issue that the dev team is already working on. We will try to fix this asap.

    #297563 Reply

    Robert Hible
    Member

    I was able to partially get around this issue by expanding the ‘Line Width’ to something like 128 characters. Preferences->MyEclipse Enterprise Workbench->Files and Editors->XML->XML Source.

    Also, noticed after I posted http://www.myeclipseide.com/PNphpBB2-printview-t-22553-start-0.html which outlines more detail.

    #297582 Reply

    Loyal Water
    Member

    I was able to partially get around this issue by expanding the ‘Line Width’ to something like 128 characters. Preferences->MyEclipse Enterprise Workbench->Files and Editors->XML->XML Source.

    Glad you have a workaround for now. Sorry for the inconvenience.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XML Format Issue

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