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

Top level element should be separated by 2 new lines in the XWiki Syntax renderer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6 M2
    • Fix Version/s: 1.6
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • keywords:
      bugfixingweek
    • Tests:
      Unit
    • Similar issues:

      Description

      This is because wikimodel doesn't generate events for 1 or 2 new lines between top level elements. They are not considered semantic by wikimodel. So there isn't much we can do.

      For ex this means that the following:

      para
      ----
      para
      

      will get transformed to:

      para
      
      ----
      
      para
      

      if the user switches to the wysiwyg and back to the wiki editor. This is acceptable IMO since it simply means we're cleaning the content. Same as with "** something"" which we transform into "*something*".

      In the future it would be good to "clean" the document content when in the wiki editor and when the user saves the content.

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: