[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in nxml-mode (indentation)?

From: Mark A. Hershberger
Subject: Re: Bug in nxml-mode (indentation)?
Date: Mon, 17 Dec 2007 22:46:37 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Eric Lilja <address@hidden> writes:

> Is the nxml-mode way of indenting vs xml-mode in this particular
> example to be considered a bug?

Space can be significant (i.e. can convey meaning) in XML and there is
no way to figure out what the space means just from the snippets you've
given.  Depending on the application, the following XML could be
considered identical or completely different:


If you want to adjust the indention of nxml-mode, look at
nxml-child-indent and nxml-attribute-indent.  Unfortunately, I don't see
anything to adjust indenting of lines that just contain text.

If you want to look at adding this functionality, the best place to
start looks like it would be the function

GPG Fingerprint: 7E15 362D A32C DFAB E4D2  B37A 735E F10A 2DFC BFF5

The most beautiful experience we can have is the mysterious.
    -- Albert Einstein, The World As I See it

reply via email to

[Prev in Thread] Current Thread [Next in Thread]