GNU bug report logs - #7937
nxml-mode.el indenting wrong when more than one <> on a line

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sat, 29 Jan 2011 22:00:03 UTC

Severity: minor

Tags: confirmed, patch

Full log


Message #19 received at 7937 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Meister <pallagun <at> gmail.com>
To: 7937 <at> debbugs.gnu.org
Subject: bug#7937: nxml-mode indenting bug fix.
Date: Tue, 28 Mar 2023 15:05:05 -0400
[Message part 1 (text/plain, inline)]
Hi,
  I've tried to put a fix in place for bug 7937 (and possibly 7768
unintentionally).  The repair I've made will cause changes in the way that
nxml indents lines under normal circumstances.  I'm not sure if a change
like this is acceptable given that I'm only trying to fix a bug.  The
behavior change is most visible in a situation such as:

<root>
  <a><b><c>
    inner
  </c>
</b>
  </a>
</root>

Which would now be indented as:
<root>
  <a><b><c>
        inner
      </c>
    </b>
  </a>
</root>

There are additional tests which show more of the indenting changes as well.

This is my first bug fix, please let me know if I've missed anything
(procedurally or otherwise).  I'm happy to rework/restructure this based on
any suggestions.

-steve
[Message part 2 (text/html, inline)]
[bug7937.patch (text/x-patch, attachment)]

This bug report was last modified 1 year and 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.