Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3180

Newlines following <b> tags are not rendered into spaces.

    XMLWordPrintable

Details

    • Unit

    Description

      Consider the following rendering test case:

      .#-------------------------------------------------------------------------------------------------------
      .input|xhtml/1.0
      .#-------------------------------------------------------------------------------------------------------
      <p>This<strong>
      Spore Cheat Sheet</strong></p>
      .#-----------------------------------------------------
      .expect|event/1.0
      .#-----------------------------------------------------
      beginDocument
      beginParagraph
      onWord [This]
      beginFormat: [BOLD]
      onWord [Spore]
      onSpace
      onWord [Cheat]
      onSpace
      onWord [Sheet]
      endFormat: [BOLD]
      endParagraph
      endDocument
      .#-----------------------------------------------------
      .expect|xwiki/2.0
      .#-----------------------------------------------------
      This**Spore Cheat Sheet**
      

      This test case passes without reporting any errors; which means the newline at the beginning of the <b> block is ignored. Browsers (tested on FF 3.0) seems to render this newline as a space.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            asiri Asiri Rathnayake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: