emacs-devel
[Top][All Lists]
Advanced

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

Re: Indentation contest nxml vs xml-mode


From: Jason Rumney
Subject: Re: Indentation contest nxml vs xml-mode
Date: Thu, 06 Mar 2008 22:18:36 +0000
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

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?

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.





reply via email to

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