Skip to content

Diff issue in amendments with ordered/unordered lists #5856

@MSoeb

Description

@MSoeb

Describe the bug
Amendments in an ordered/unordered list result in an incorrect diff. If new content is entered at a lower level, the diff generates a new line. This is incorrect.

Amendment text:
Image

Amendment output with wrong diff:
Image

How to Reproduce

  1. open motions
  2. create a new motion with code 1 linked below.
  3. create an amendment to it in line 1-5 with Code 2 linked below.
  4. --> Error with wrong new line will appear.

Code 1:

	<li>Testzeile 1<ol>
	<li>Testzeile 2<ol>
	<li>Testzeile 3</li>
	<li>Testzeile 4</li>
</ol>
</li>
<li>Testzeile 5</li>
</ol>
</li>
<li>Testzeile 6</li>
</ol>

Code 2:

	<li>Testzeile 1<ol>
	<li>Testzeile 2<ol>
	<li>Testzeile 3 Mehr Inhalt</li>
	<li>Testzeile 4</li>
</ol>
</li>
<li>Testzeile 5</li>
</ol>
</li>
</ol>

Expected behavior
If an amendment if done to a lower level list point, the diff should work correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions