Option to enter empty tags with a space before
Brought to you by:
lenst
It has been recommended that, for compatibility with
non-XHTML aware browsers, that empty tags be entered
with a space before the "/>" at the end of the tag,
i.e. ""<br />" rather than "<br/>". When using PSGML to
edit XHTML, it would be nice if there was an option to
make that happen automatically.
Patch to implement RFE (applies against PSGML 1.2.5)
Logged In: YES
user_id=156375
I've attached a simple patch that implements the feature I
requested. When
the variable sgml-xhtml-style-empty-tag is non-nil, empty
tags will be inserted with a space before the "/>" at the
end of the tag, i.e. <br /> instead of <br/>.
Logged In: YES
user_id=156375
The patch is incomplete. :-( In an empty tag with
attributes, like <img />, the space ends up before the
attributes, not the "/>", that is, this:
<img src="foo.gif" alt="foo"/>
instead of
<img src="foo.gif" alt="foo" />