GNU bug report logs - #16820
24.3; nxml comment block indentation issue

Previous Next

Package: emacs;

Reported by: Nate Eagleson <nate <at> nateeag.com>

Date: Thu, 20 Feb 2014 07:25:01 UTC

Severity: minor

Tags: confirmed

Found in version 24.3

Full log


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

From: Stefan Kangas <stefan <at> marxist.se>
To: Nate Eagleson <nate <at> nateeag.com>
Cc: 16820 <at> debbugs.gnu.org
Subject: Re: bug#16820: 24.3; nxml comment block indentation issue
Date: Wed, 12 Aug 2020 15:01:13 -0700
Nate Eagleson <nate <at> nateeag.com> writes:

> nxml-mode indents multiple lines in a comment block to match the
> preceding line's indentation, even for blank lines. It should ignore
> blank lines when determining indent level.
[...]
>
> To reproduce:
>
> Start emacs with -Q.
>
> Create a new buffer.
>
> Start XML mode: M-x xml-mode
>
> Enter the following text:
>
> <test>
>  <!-- This is a comment.
>
> This is the next paragraph in the comment.
> -->
> </test>
>
> Put the cursor before '-->' and press Tab. It will indent to the same
> level as '<!--'.
>
> Put the cursor before 'This is the next paragraph in the comment' and
> press Tab. Nothing will happen.
>
> Move up one line to the blank line. Press spacebar twice.
>
> Move back down a line. Press Tab. The second line will now indent as
> expected.

I can reproduce this, but I'm not sure this is a bug.  Why shouldn't it
take blank lines into consideration?

Best regards,
Stefan Kangas




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

Previous Next


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