GNU bug report logs - #7467
Could nxml-mode avoid reindenting <pre>...</pre>?

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Mon, 22 Nov 2010 17:43:02 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 7467 in the body.
You can then email your comments to 7467 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7467; Package emacs. (Mon, 22 Nov 2010 17:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lennart Borgman <lennart.borgman <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 22 Nov 2010 17:43:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: Could nxml-mode avoid reindenting <pre>...</pre>?
Date: Mon, 22 Nov 2010 18:47:32 +0100
Since the content in <pre>...</pre> is preformatted it would be good
if nxml-mode did not reformat it during indentation.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7467; Package emacs. (Mon, 22 Nov 2010 22:53:01 GMT) Full text and rfc822 format available.

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

From: Jason Rumney <jasonr <at> gnu.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 7467 <at> debbugs.gnu.org
Subject: Re: bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>?
Date: Tue, 23 Nov 2010 06:57:14 +0800
Lennart Borgman <lennart.borgman <at> gmail.com> writes:

> Since the content in <pre>...</pre> is preformatted it would be good
> if nxml-mode did not reformat it during indentation.

XML attaches no such semantic meaning to tags.

Maybe it would be useful for nxml-mode to have a more general way for
the user to specify not to indent within a block denoted by a
tag.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7467; Package emacs. (Mon, 22 Nov 2010 23:04:02 GMT) Full text and rfc822 format available.

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

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Jason Rumney <jasonr <at> gnu.org>
Cc: 7467 <at> debbugs.gnu.org
Subject: Re: bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>?
Date: Tue, 23 Nov 2010 00:08:06 +0100
On Mon, Nov 22, 2010 at 11:57 PM, Jason Rumney <jasonr <at> gnu.org> wrote:
> Lennart Borgman <lennart.borgman <at> gmail.com> writes:
>
>> Since the content in <pre>...</pre> is preformatted it would be good
>> if nxml-mode did not reformat it during indentation.
>
> XML attaches no such semantic meaning to tags.
>
> Maybe it would be useful for nxml-mode to have a more general way for
> the user to specify not to indent within a block denoted by a
> tag.

Yes, it should probably be more general to allow for specific handling
of certain tags in certain DTD:s, for example <pre> in XHTML.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7467; Package emacs. (Sun, 18 Jul 2021 12:24:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jason Rumney <jasonr <at> gnu.org>
Cc: Lennart Borgman <lennart.borgman <at> gmail.com>, 7467 <at> debbugs.gnu.org
Subject: Re: bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>?
Date: Sun, 18 Jul 2021 14:23:22 +0200
Jason Rumney <jasonr <at> gnu.org> writes:

> Lennart Borgman <lennart.borgman <at> gmail.com> writes:
>
>> Since the content in <pre>...</pre> is preformatted it would be good
>> if nxml-mode did not reformat it during indentation.
>
> XML attaches no such semantic meaning to tags.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Yeah, I think it'd be wrong for nxml-mode to do anything special with
<pre>.  html-mode, on the other hand, should respect <pre>, and there a
separate bug report for that.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 7467 <at> debbugs.gnu.org and Lennart Borgman <lennart.borgman <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 18 Jul 2021 12:24: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. (Mon, 16 Aug 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 253 days ago.

Previous Next


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