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

Problems with mixing brackets and embedded documents

    XMLWordPrintable

Details

    • Unit

    Description

      Consider the following passing test case:

      .#-----------------------------------------------------
      .input|xhtml/1.0
      .#-----------------------------------------------------
      <div class="xwiki-document"><p>Ok let's have an embedded document.</p><p>(some text in brackets)</p></div>
      .#-----------------------------------------------------
      .expect|xwiki/2.0
      .#-----------------------------------------------------
      (((Ok let's have an embedded document.
      
      (some text in brackets))))
      

      Now if we reverse the input and output, the test case fails:

      .#-----------------------------------------------------
      .input|xwiki/2.0
      .#-----------------------------------------------------
      (((Ok let's have an embedded document.
      
      (some text in brackets))))
      .#-----------------------------------------------------
      .expect|xhtml/1.0
      .#-----------------------------------------------------
      <div class="xwiki-document"><p>Ok let's have an embedded document.</p><p>(some text in brackets)</p></div>
      

      The actual xhtml output looks pretty weird. Following test case (passing) demonstrates the issue:

      .#-----------------------------------------------------
      .input|xwiki/2.0
      .#-----------------------------------------------------
      (((Ok let's have an embedded document.
      
      (some text in brackets))))
      .#-----------------------------------------------------
      .expect|xhtml/1.0
      .#-----------------------------------------------------
      <div class="xwiki-document"><p>Ok let's have an embedded document.</p><p>(some text in brackets</p></div><p>)</p>
      

      This xhtml fragment does not render the content as we expect.

      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: