Branch: refs/heads/stable-16.10.x
Home:
https://github.com/xwiki/xwiki-rendering
Commit: 7f155a57b566b1d525e73224c1d39c8f3564694d
https://github.com/xwiki/xwiki-rendering/commit/7f155a57b566b1d525e73224c1d…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2025-05-08 (Thu, 08 May 2025)
Changed paths:
M
xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/FootnoteMacro.java
M
xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/PutFootnotesMacro.java
M
xwiki-rendering-macros/xwiki-rendering-macro-footnotes/src/test/resources/macrofootnote6.test
M
xwiki-rendering-standalone/src/test/java/org/xwiki/rendering/example/ExampleTest.java
Log Message:
-----------
XRENDERING-705: Footnote macro produces inline content in standalone mode
* Wrap the footnote content in a paragraph when the macro is standalone.
* Adapt tests to expect the wrapping paragraph.
While this fixes the immediate problem of invalid HTML, it isn't nice to
have a standalone footnote macro in the WYSIWYG editor. To fix this, a
possible solution tracked in XRENDERING-784 is that macros should have a
way to indicate their preferred mode (inline or standalone), and the
WYSIWYG editor should honor this preferred mode.
(cherry picked from commit 7a59e3190be9256aa2d007981cef155ff160e912)
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-rendering/settings/notifications