Re: incorrect indentation according to element nesting depth after <tag/>

Syd Bauman <[email protected]> Mon, 9 Apr 2007 15:04:18 -0400
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
> Let's call this an "opening tag, that's also immediately closed"
> for better understanding.

May I suggest we call it an "empty-element tag"? 
(http://www.w3.org/TR/REC-xml/#dt-eetag)


> No, indentation is spoilt after <tag/> .

Indentation looks lousy for me, too if I do not load my .emacs file,
but indentation looks fine if I do load my .emacs file. So I must be
doing something that changes its behavior. I'm afraid I haven't time
to dig deeply right now (my .emacs and the files it loads amount to a
*lot* of elisp), but perhaps this will help:

(setq-default
 sgml-always-quote-attributes t
 sgml-auto-activate-dtd t
 sgml-auto-insert-required-elements t
 sgml-balanced-tag-edit t
 sgml-declaration '/opt/local/sgml/WWP/wwp.sgmldecl
 sgml-general-insert-case 'lower
 sgml-indent-data t
 sgml-insert-missing-element-comment nil
 sgml-leave-point-after-insert nil
 sgml-live-element-indicator t
 sgml-minimize-attributes nil
 sgml-omittag t
 sgml-shorttag t
 sgml-namecase-general nil
 sgml-namecase-entity nil
 sgml-validate-command "onsgmls -s -wmin-tag %s %s"
 sgml-catalog-files '("/etc/sgml/catalog" "/usr/share/sgml/tei/catalog")
 sgml-ecat-files '("/usr/share/sgml/tei/ecatalog")
 )


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV