unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in nxml-mode (indentation)?
@ 2007-12-17 21:56 Eric Lilja
  2007-12-18  3:46 ` Mark A. Hershberger
  0 siblings, 1 reply; 15+ messages in thread
From: Eric Lilja @ 2007-12-17 21:56 UTC (permalink / raw)
  To: emacs-devel

Hello, I'm using GNU Emacs 23.0.50.1 (i386-mingw-nt5.1.2600) of 
2007-12-17 on MINDCOOLER. I noticed a difference in how the old xml-mode 
versus nxml-mode indents an xml-file where you have a tag that stretches 
over several lines (hope I use the terminology correct here). Consider 
this simple test file (hope the spaces are preserved in the post or this 
will be a useless report):
<outer>
   <p>This text stretches over several lines.
     This text stretches over several lines.
     This text stretches over several lines.
   </p>
</outer>

This is the indentation you get with the old xml-mode (M-x xml-mode) and 
you can see I'm using an offset of two spaces.

Now consider the indentation using nxml-mode:
<outer>
   <p>This text stretches over several lines.
   This text stretches over several lines.
   This text stretches over several lines.
   </p>
</outer>

Now this I don't like. The last two "This text stretches over several 
lines" should be indented another step like in plain xml-mode I feel. 
I'm just beginning with xml and my own xml-files usually don't look like 
this but I do have to work with such files. Is the nxml-mode way of 
indenting vs xml-mode in this particular example to be considered a bug? 
If it is, let me know if you need any more information from me. Thanks!

- Eric

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

end of thread, other threads:[~2007-12-21  4:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-17 21:56 Bug in nxml-mode (indentation)? Eric Lilja
2007-12-18  3:46 ` Mark A. Hershberger
2007-12-18  9:15   ` Eric Lilja
2007-12-18  9:38     ` Jason Rumney
2007-12-18  9:46       ` Eric Lilja
2007-12-18 10:23         ` Jason Rumney
2007-12-18 10:52           ` Eric Lilja
2007-12-18 11:29             ` Jason Rumney
2007-12-18 12:55               ` Eric Lilja
2007-12-18 20:59               ` Edward O'Connor
2007-12-18 21:53                 ` Eric Lilja
2007-12-21  2:05                   ` Edward O'Connor
2007-12-18 20:10           ` Lennart Borgman (gmail)
2007-12-21  0:41   ` Stefan Monnier
2007-12-21  4:05     ` Mark A. Hershberger

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