This issue has been created
There is 1 update.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-af3885de-0ccf-46f1-8ecb-9d861f3a1c02 XRENDERING-832 Open

The plain/1.0 renderer glues the label and title of a message box to the text before it

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ea0b2478-41f3-45a8-8289-62ae5c7c341e Paul Pantiru created this issue on 06/Nov/26 11:10
 
Summary: The plain/1.0 renderer glues the label and title of a message box to the text before it
Issue Type: cid:jira-generated-image-avatar-af3885de-0ccf-46f1-8ecb-9d861f3a1c02 Bug
Affects Versions: 17.4.0
Assignee: Unassigned
Components: Syntax - plain/1.0
Created: 06/Nov/26 11:10
Priority: cid:jira-generated-image-static-major-5bf6ac80-c794-45d9-be25-21d2bf61e1cf Major
Reporter: Paul Pantiru
Description:

When a page is rendered to plain/1.0, the text that an info, warning, error or success macro generates before its content (the alternative text of its icon, and its title when one is set) is printed right after the last character of the previous block, with no separator.

Steps to reproduce

  1. On a standard XWiki, open the Sandbox home page with the plain output syntax: /xwiki/bin/get/Sandbox/WebHome?outputSyntax=plain
  2. Look at the text around the two info boxes and the warning box.

Expected

The label and the title of a box start on their own line, as the box content does.

Actual

Simply click on Edit to get started!Information

Don't worry about overwriting or losing stuff when editing the page, ...
Level 6 Heading 6InformationAccessibility recommendation

In order to provide the best experience for assistive technology users ...
This macro allows you to draw users' attention to a specific piece of information:Warning

Hello World

Cause

PlainTextChainingRenderer prints an empty line only at the beginning of a paragraph, header, list, table, horizontal line, quotation or definition list. It has no handler for the beginning of a group or of a format block, so inline content placed directly in a group is appended to what was printed before. The message macros produce such content: the box group starts with a format block holding the alternative text of the icon, followed by a group holding the title, and only then the content paragraphs.

For the same reason a page that starts with a message box gets the label glued to the first words of the box content.

Any plain text produced from an executed XDOM is affected, for example the plain text part of notification mails.

 
 

1 update

 
cid:jira-generated-image-avatar-ea0b2478-41f3-45a8-8289-62ae5c7c341e Changes by Paul Pantiru on 06/Nov/26 11:11
 
Priority: Major