This issue has been created
 
 
XWiki Rendering / cid:jira-generated-image-avatar-65f9d34e-04b5-450a-be7b-06374aee13e5 XRENDERING-800 Open

ToC entries missing last char of headings if non-alphanumeric

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e879e1b9-43bd-461f-89b6-1939cb655bbe metawiki created this issue on 05/Jan/26 16:31
 
Summary: ToC entries missing last char of headings if non-alphanumeric
Issue Type: cid:jira-generated-image-avatar-65f9d34e-04b5-450a-be7b-06374aee13e5 Bug
Affects Versions: 15.10.16, 16.10.15
Assignee: Unassigned
Attachments: image-2026-01-05-16-26-26-973.png
Components: Macro - Toc
Created: 05/Jan/26 16:31
Environment: XWiki Docker
Priority: cid:jira-generated-image-static-minor-a863bda0-3da0-4bea-a9b9-f7bc287432e2 Minor
Reporter: metawiki
Description:

Hi XWiki Team,

I was unable to find a similar bug report, so here goes my first bug report (please bear with me). wink.png 

Actual Behaviour:

When headings have a non-alphanumerical last char, this char is missing from the corresponding ToC entries:

44480_image-2026-01-05-16-26-26-973.png

(N.B.: The bright highlights are from the screenshotting tool.)

The hrefs of the ToC links do contain these chars in an encoded manner.

Expected behaviour:

The last visible char of any heading should be included in its ToC entry, too.

 

Let me know if I can be of any assistance in resolving this issue.

Thanks!