GNU bug report logs - #32003
26.0.90; nxml wrong indentation after multi-line attribute

Previous Next

Package: emacs;

Reported by: Benjamin Riefenstahl <Riefenstahl <at> mecom.de>

Date: Fri, 29 Jun 2018 10:00:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 33873

Found in versions 26.0.90, 26.1

Fixed in version 26.3

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Benjamin Riefenstahl <Riefenstahl <at> mecom.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.90; nxml wrong indentation after multi-line attribute
Date: Fri, 29 Jun 2018 11:38:15 +0200
Hi all,

Consider this XML:

---- cut ----
<settings
    xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                        https://maven.apache.org/xsd/settings-1.0.0.xsd">
                        <mirrors>
                          ...
                        </mirrors>
</settings>
---- cut ----

Save to a file, nxml-mode should be activated, type tab on the line
"<mirrors>".

The element <mirrors> should be indented at 4 spaces, but it is indented
according to the attribute value of the previous element, unless I
eliminate the line-feed there.

I can reproduce this in "emacs -Q".

benny




This bug report was last modified 6 years and 15 days ago.

Previous Next


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