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

Verbatim blocks are parsed back incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.1, 2.1 M1
    • 1.9.3, 2.0 M3
    • {Unused} Rendering 2.0
    • None
    • any
    • verbatim
    • Unit
    • Unknown

    Description

      The following verbatim block:

      {{{one
      two}}}
      

      is translated into:

      <pre>one two</pre>
      

      which is rendered fine in view mode (the space between one and two is in fact a new line). Firefox replaces the new lines with a BRs in edit mode so when you save from WYSIWYG this:

      <pre>one<br/>two</pre>
      

      is translated into:

      \\
      
      {{{onetwo}}}
      

      So it seems the verbatim block is recomputed using only the inner text and the BRs are parsed separately.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: