Incorrectly Parsed Span Tags

ChainsawXIV
ChainsawXIV
edited November 2009 in Bug Reports

Comments

  • ChainsawXIV
    ChainsawXIV
    Posts: 529
    It would appear that in some situations _span_ HTML tags are being handled incorrectly by the wiki system when included in the text of a page. Specifically, when followed by a line break they are enclosed in _p_ tags, with the closing _p_ tag at the first line break within the _span_, which implicitly closes _span_ tag and breaks formatting. This seems to be the result of the wiki system parsing the _span_ tags as regular text, rather than HTML code. For reference, this error does not occur when the _div_ tag is used instead.



    A span followed by a line break like so:




    This text will be in Arial font.




    Produces the following brokenness when parsed:





    This text will be in Arial font.







    Where as the _div_ version:




    This text will be in Arial font.




    Produces correctly formed code when parsed:




    This text will be in Arial font.







    It's even more fun if the text is tab indented:




    This text will be in Arial font.




    Which gets automatic _pre_ tags for being tidy:





    This text will be in Arial font.







    Where as again the _div_ version:




    This text will be in Arial font.




    Produces the more expected result:




    This text will be in Arial font.






    _Originally noted in this thread._
  • ryan
    ryan
    Posts: 126
    ChainsawXIV,

    Thanks for letting us know. Are you using the WYSIWYG editor or the Textitle Editor?

    I'll attempt to duplicate it on my end and see if we can come up with a fix.

    Thanks again for the report.

    Ryan
  • ChainsawXIV
    ChainsawXIV
    Posts: 529
    Thanks Ryan. This was with the Textile editor - I haven't played with the WYSIWYG editor at all.
Sign In or Register to comment.

December 2021
“Le Sang versé d’Occitanie” (The Spilled Blood of Occitania)

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions