[xwiki/xwiki-rendering] b66c02: XRENDERING-684: Empty lines get removed below tabl...
Branch: refs/heads/backport-322-to-stable-16.10.x Home: https://github.com/xwiki/xwiki-rendering Commit: b66c02569df014ea99089ae7f7726d486e955a29 https://github.com/xwiki/xwiki-rendering/commit/b66c02569df014ea99089ae7f772... Author: Michael Hamann <[email protected]> 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
participants (1)
-
XWiki Notifications