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

    • Bug
    • Resolution: Fixed
    • Major
    • 1.6
    • 1.6 M2
    • {Unused} Rendering 2.0
    • None
    • bugfixingweek
    • Unit

    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

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

            Dates

              Created:
              Updated:
              Resolved: