unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>?
@ 2010-11-22 17:47 Lennart Borgman
  2010-11-22 22:57 ` Jason Rumney
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2010-11-22 17:47 UTC (permalink / raw)
  To: 7467

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>?
  2010-11-22 17:47 bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>? Lennart Borgman
@ 2010-11-22 22:57 ` Jason Rumney
  2010-11-22 23:08   ` Lennart Borgman
  2021-07-18 12:23   ` Lars Ingebrigtsen
  0 siblings, 2 replies; 4+ messages in thread
From: Jason Rumney @ 2010-11-22 22:57 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 7467

Lennart Borgman <lennart.borgman@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>?
  2010-11-22 22:57 ` Jason Rumney
@ 2010-11-22 23:08   ` Lennart Borgman
  2021-07-18 12:23   ` Lars Ingebrigtsen
  1 sibling, 0 replies; 4+ messages in thread
From: Lennart Borgman @ 2010-11-22 23:08 UTC (permalink / raw)
  To: Jason Rumney; +Cc: 7467

On Mon, Nov 22, 2010 at 11:57 PM, Jason Rumney <jasonr@gnu.org> wrote:
> Lennart Borgman <lennart.borgman@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>?
  2010-11-22 22:57 ` Jason Rumney
  2010-11-22 23:08   ` Lennart Borgman
@ 2021-07-18 12:23   ` Lars Ingebrigtsen
  1 sibling, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-18 12:23 UTC (permalink / raw)
  To: Jason Rumney; +Cc: Lennart Borgman, 7467

Jason Rumney <jasonr@gnu.org> writes:

> Lennart Borgman <lennart.borgman@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-18 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 17:47 bug#7467: Could nxml-mode avoid reindenting <pre>...</pre>? Lennart Borgman
2010-11-22 22:57 ` Jason Rumney
2010-11-22 23:08   ` Lennart Borgman
2021-07-18 12:23   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).