unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Lilja <mindcooler@gmail.com>
To: emacs-devel@gnu.org
Subject: Bug in nxml-mode (indentation)?
Date: Mon, 17 Dec 2007 22:56:23 +0100	[thread overview]
Message-ID: <fk6ra5$htm$1@ger.gmane.org> (raw)

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

             reply	other threads:[~2007-12-17 21:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-17 21:56 Eric Lilja [this message]
2007-12-18  3:46 ` Bug in nxml-mode (indentation)? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='fk6ra5$htm$1@ger.gmane.org' \
    --to=mindcooler@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).