Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
13.10.6, 14.4
-
Unknown
-
N/A
-
N/A
-
Description
How to reproduce:
- put the following content in a page:
test {{mention reference="XWiki.kbernick" anchor="XWiki-kbernick-i3phd9"/}} text after
- probably best to have a user called kbernick or use a user that exists on your wiki
- save and view
Expected result:
The mention is displayed properly separated by the text surrounding it by the 2 whitespaces from that appear in the wiki syntax surrounding the mention macro.
Actual result:
The space on the left is displayed fine while the text on the right is not displayed fine, the text appears stuck to the mention decoration:
The space appears like it's inside the mention decoration.
Note 1: in edit mode the whitespace is properly displayed:
This is especially confusing as saving this content now makes it look broken after save.
Note 2: if the mention is at the beginning of the line, like this:
{{mention reference="XWiki.kbernick" anchor="XWiki-kbernick-i3phd9"/}} text after
Attachments
Issue Links
- is caused by
-
XWIKI-19752 Privilege escalation (PR) from view rights through the mentions macro
- Closed
- is related to
-
XWIKI-20501 Mention macro is incorrectly generating whitespaces in the HTML
- Closed