Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-760

Lists with two or more nested items containing groups (DIVs) are badly converted to XWiki syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 16.4.4
    • Syntax - xwiki/2.1
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Take the following wiki syntax:

      * one
      ** two(((
      three
      )))
      ** four(((
      five
      )))
      

      If you edit this with the WYSIWYG editor and switch to source you get the following valid HTML:

      <ul>
        <li>
          one
          <ul>
            <li>two<div><p>three</p></div></li>
            <li>four<div><p>five</p></div></li>
          </ul>
        </li>
      </ul>
      

      converted to:

      * (((
      one* two(((
      three
      )))
      * four(((
      five
      )))
      )))
      

      Note that the problem doesn't reproduce if there is a single nested list item with a group. And neither if the groups are on top level list items.

      Adding nested list items without groups before, between or after the two nested list items with groups doesn't change the behavior.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: