Menu

#14 Option to enter empty tags with a space before

open
nobody
None
5
2004-03-06
2004-03-06
No

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.

Discussion

  • J. J. Ramsey

    J. J. Ramsey - 2004-03-06

    Patch to implement RFE (applies against PSGML 1.2.5)

     
  • J. J. Ramsey

    J. J. Ramsey - 2004-03-06
    • summary: Option to enter empty tags with a space before "/>" --> Option to enter empty tags with a space before
     
  • J. J. Ramsey

    J. J. Ramsey - 2004-03-06

    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/>.

     
  • J. J. Ramsey

    J. J. Ramsey - 2004-03-06

    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" />

     

Log in to post a comment.