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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32003 in the body.
You can then email your comments to 32003 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32003; Package emacs. (Fri, 29 Jun 2018 10:00:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benjamin Riefenstahl <Riefenstahl <at> mecom.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 29 Jun 2018 10:00:02 GMT) Full text and rfc822 format available.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32003; Package emacs. (Fri, 19 Apr 2019 03:49:01 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Benjamin Riefenstahl <Riefenstahl <at> mecom.de>
Cc: David Carlisle <davidc <at> nag.co.uk>, Vincent Lefevre <vincent <at> vinc17.net>,
 32003 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#32003: 26.0.90;
 nxml wrong indentation after multi-line attribute
Date: Thu, 18 Apr 2019 23:48:31 -0400
[Message part 1 (text/plain, inline)]
forcemerge 32003 33873
tags 32003 + patch
quit

Benjamin Riefenstahl <Riefenstahl <at> mecom.de> writes:

> <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>

Here's a patch to fix this bug, Bug#33873, and the indentation part of Bug#32897.

[0001-Fix-nxml-get-inside-Bug-32003.patch (text/plain, attachment)]

Forcibly Merged 32003 33873. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 19 Apr 2019 03:49:02 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 19 Apr 2019 03:49:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32003; Package emacs. (Thu, 09 May 2019 11:43:01 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Benjamin Riefenstahl <Riefenstahl <at> mecom.de>
Cc: Vincent Lefevre <vincent <at> vinc17.net>, David Carlisle <davidc <at> nag.co.uk>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, 32003 <at> debbugs.gnu.org
Subject: Re: bug#32003: 26.0.90;
 nxml wrong indentation after multi-line attribute
Date: Thu, 09 May 2019 07:41:47 -0400
tags 32003 fixed
close 32003 26.3
quit

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

> forcemerge 32003 33873
> tags 32003 + patch
> quit
>
> Benjamin Riefenstahl <Riefenstahl <at> mecom.de> writes:
>
>> <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>
>
> Here's a patch to fix this bug, Bug#33873, and the indentation part of Bug#32897.

Pushed to emacs-26.

ca14dd1d46 2019-05-09T06:42:40-04:00 "Fix nxml-get-inside (Bug#32003)"
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ca14dd1d4628094dd33d5d94694dcf5f29e843b8





Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 09 May 2019 11:43:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 26.3, send any further explanations to 32003 <at> debbugs.gnu.org and Benjamin Riefenstahl <Riefenstahl <at> mecom.de> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 09 May 2019 11:43:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 Jun 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 318 days ago.

Previous Next


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