|
From: | Lennart Borgman (gmail) |
Subject: | Re: Indentation contest nxml vs xml-mode |
Date: | Thu, 06 Mar 2008 23:34:17 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Jason Rumney wrote:
Drew Adams wrote:Try indenting the following in nxml-mode and xml-mode: <outermost> <inner1><inner2> <inner3>Duh</inner3> </inner2> </inner1> </outermost> I think xml-mode wins here.This has been discussed here before. Try it with some real elements... <html> <body><b> <i>Duh</i> </b> </body> </html> Which indentation looks more correct now?
I am not sure, but the main thing is if we can get rid of one of those (and I suggest to get rid of nxml-mode's variant because I think there is a bug there).
nxml's indentation is based on the fact that you are using <inner2> in a way that suggests that it has inline, not block semantics.
[Prev in Thread] | Current Thread | [Next in Thread] |