#250 Wiki is XHTML but <br> works and <br /> doesn't

Rendering
closed
1
2012-10-11
2004-02-28
Anonymous
No

Enter the following on a Wiki page:

Foo
This should start on a new line

Bar
This should start on a new line

PhpWiki claims to be XHTML, but the non-XHTML code works
and the XHTML code doesn't.

Discussion

  • Reini Urban
    Reini Urban
    2004-04-10

    Logged In: YES
    user_id=13755

    well, well.
    The docs state that %%% or
    can be used for page breaks.
    But we'll try to support
    also.

    This markup tag is just convenience, not true output.
    Internally everything is converted to XML objects which will
    be printed as
    then.

     
  • Reini Urban
    Reini Urban
    2004-04-13

    Logged In: YES
    user_id=13755

    Tried it but failed. Maybe jeff will try it later.

    class Markup_linebreak extends SimpleMarkup
    {
    var $_match_regexp = "(?: (?<! %) %%% (?! %) |
    <(?:br|BR)> | <(?:br|BR) />)";