Branch: refs/heads/backport-322-to-stable-16.4.x
Home:
https://github.com/xwiki/xwiki-rendering
Commit: 4f3108e58c62f6d93bcffbbe280b66a1342c422b
https://github.com/xwiki/xwiki-rendering/commit/4f3108e58c62f6d93bcffbbe280…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2025-01-16 (Thu, 16 Jan 2025)
Changed paths:
M
xwiki-rendering-api/src/main/java/org/xwiki/rendering/listener/chaining/ListenerChain.java
M
xwiki-rendering-syntaxes/xwiki-rendering-syntax-xwiki20/src/main/java/org/xwiki/rendering/internal/renderer/xwiki20/XWikiSyntaxChainingRenderer.java
A
xwiki-rendering-syntaxes/xwiki-rendering-syntax-xwiki20/src/test/resources/xwiki20/specific/emptylines/emptylines1.test
A
xwiki-rendering-syntaxes/xwiki-rendering-syntax-xwiki20/src/test/resources/xwiki20/specific/emptylines/emptylines2.test
Log Message:
-----------
XRENDERING-684: Empty lines get removed below tables and lists after saving in wysiwyg
editor (#322)
Align the renderer with the parser regarding empty line handling:
* At the start of the document, we need two extra newlines.
* At the start of a group, we need one extra newline, unless the group
is otherwise empty, then one newline less should be printed.
* After tables, lists and definition lists, we need one extra newline.
This also fixes XRENDERING-667: New lines added when parsing and
re-rendering groups in xwiki/2.1
Further, it partially implements XRENDERING-98 for the beginning of the
content: Make empty lines at beginning and end of content significant
for XWiki Syntax 2.2.
(cherry picked from commit 7159c51d6933bec1a8403127a0e40ddf2677a6be)
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-rendering/settings/notifications