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

New lines at the end of block-level elements are lost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.8 RC1
    • 1.8 M2
    • {Unused} Rendering 2.0
    • None
    • any
    • new line end block lost
    • Unit

    Description

      XWiki 2.0 input:

      paragraph\\
      

      XHTML output:

      <p>paragraph<br/></p>
      

      XWiki 2.0 output after re-parsing:

      paragraph
      
      

      Note: \ \ has been transformed in \n.

      XHTML output after re-rendering:

      <p>paragraph</p>
      

      I think that a new line at the end of a block-level element should be transformed in \ \ rather than \n since \n gets lost.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: