1

Here is an example how XEmacs makes indentation in xml-mode of a xhtml document:

    <div><a id="page_1"/>
        <p>text</p>
    </div>

in nxml-mode in GNU Emacs it looks like this:

    <div><a id="page_1"/>
    <p>text</p>
    </div>

This is the result of auto-indentation which belongs to indent-line-function. I also know the possibility to avoid this behavior by writing the closing a-Tag to a new line. But this appearance I use is necessary for my workflow.

Have somebody any suggestions to solve this problem?

iberion
  • 33
  • 3
  • What is your specific problem? – Rohit Vipin Mathews Aug 28 '13 at 10:33
  • Is that the result of `indent-region`, or merely of pressing return? –  Aug 28 '13 at 11:16
  • Looks like an Emacs minor bug with an easy workaround: don't put several elements in the same line (at least don't do that if one of them is opening and the last is closed). For a proper permanent solution I would suggest reporting a bug to emacs maintainers. – juanleon Aug 28 '13 at 14:05
  • @juanleon Thank you for your suggestion for reporting a bug, I'll do it. I've updated the description of my problem. – iberion Aug 28 '13 at 21:24

0 Answers0