Indentation dont works with empty tags

2002-09-13
2002-12-12
  • Torsten Geise
    Torsten Geise
    2002-09-13

    I want to indent the following region:
    <property environment="env"/>
    <property name="dir.build" value="./build"/>

    The result looks like:
      <property environment="env"/>
        <property name="dir.build" value="./build"/>

    But i expected the following:
      <property environment="env"/>
      <property name="dir.build" value="./build"/>

    Is there any solution or do i have to write:
    <property environment="env"></property>
    <property name="dir.build" value="./build"></propert>

    Thanks,
    Torsten

     
    • Perhaps you are using sgml-mode when you should be using xml-mode.

       
      • Even in xml-mode this does not work. Is there any configuration that is required?

         
        • Sorry. Correction. In xml-mode this works. But not in JSP when custom tags are used. Is there something I can do to make this work?