Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XRENDERING-619: Lists with nested paragraphs are incorrectly converted to XWiki syntax #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michitux
Copy link
Contributor

Jira URL

https://jira.xwiki.org/browse/XRENDERING-619

Changes

Description

  • Add an integration test to test the behavior
  • Make the detection of first element rendered more robust.

Clarifications

  • I decided not to address the problem of empty lines at the beginning of groups and documents being lost, while removing the condition that is added here leads to more newlines being printed, these seem to be too many newlines/more than the parser expects. I didn't dig deeper what causes this mismatch.

Screenshots & Video

Executed Tests

mvn clean install -Pintegration-tests,docker,legacy,standalone,quality

in xwiki-rendering.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • stable-16.4.x
    • stable-15.10.x

…d to XWiki syntax

* Add an integration test to test the behavior
* Make the detection of first element rendered more robust.
Paragraph 5

1. Paragraph 5.1
11. Paragraph 5.1.1(((
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit surprising to have a different result between text followed by a list and text followed by a paragraph, but that's a xhtml parser thing, so not really related to the target of this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants