This issue has been created
There are 2 updates.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-4d882ba0-7c6a-4dc0-9f20-5edd9dda39bc XRENDERING-760 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-97d78452-3d63-43cb-89ed-8344e5c29311 Marius Dumitru Florea created this issue on 21/Nov/24 13:57
 
Summary: Lists with two or more nested items containing groups (DIVs) are badly convered to XWiki syntax
Issue Type: cid:jira-generated-image-avatar-4d882ba0-7c6a-4dc0-9f20-5edd9dda39bc Bug
Affects Versions: 16.4.4
Assignee: Unassigned
Components: Syntax - xwiki/2.1
Created: 21/Nov/24 13:57
Priority: cid:jira-generated-image-static-major-3af29bb3-0f45-45e6-baca-07e27235668e Major
Reporter: Marius Dumitru Florea
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 group are on top level list items.

 
 

2 updates

 
cid:jira-generated-image-avatar-f2da4704-fd6e-4e04-a5ca-c583ccb0a04f Changes by Vincent Massol on 21/Nov/24 13:59
 
Summary: Lists with two or more nested items containing groups (DIVs) are badly convered converted to XWiki syntax
 
cid:jira-generated-image-avatar-97d78452-3d63-43cb-89ed-8344e5c29311 Changes by Marius Dumitru Florea on 21/Nov/24 14:00
 
Description: Take the following wiki syntax:

{noformat}
* one
** two(((
three
)))
** four(((
five
)))
{noformat}

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

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

converted to:

{noformat}
* (((
one* two(((
three
)))
* four(((
five
)))
)))
{noformat}

Note that the problem doesn't reproduce if there is a single nested list item with a group. And neither if the
group 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.