This issue has been created
There are 7 updates, 1 comment.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-89ee0b1d-086a-4d65-a251-571f4471e0c6 XRENDERING-791 Closed

The plain text parser doesn't parse \ as a special character

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2a8b60e6-3876-4ec5-9ba5-a8ff70f73dd2 Michael Hamann created this issue on 10/Jun/25 12:10
 
Summary: The plain text parser doesn't parse \ as a special character
Issue Type: cid:jira-generated-image-avatar-89ee0b1d-086a-4d65-a251-571f4471e0c6 Bug
Affects Versions: 3.0 M3
Assignee: Unassigned
Components: Syntax - plain/1.0
Created: 10/Jun/25 12:10
Priority: cid:jira-generated-image-static-major-aa53d896-e051-4d29-a286-c07067dc0fd4 Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

  • Parse some text containing \ with the plain text parser.

Expected result:

The \ character is parsed as special symbol and represented as such in the XDOM, similar to when the same text is parsed as xwiki/2.0 syntax for example.

Actual result:

The \ character is parsed as regular character and part of a word block in the XDOM.

 
 

7 updates

 
cid:jira-generated-image-avatar-2a8b60e6-3876-4ec5-9ba5-a8ff70f73dd2 Changes by Michael Hamann on 10/Jun/25 12:11
 
Fix Version: 17.5.0-rc-1
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Michael Hamann
Resolution: Solved By
Tests: Unit
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-2a8b60e6-3876-4ec5-9ba5-a8ff70f73dd2 Michael Hamann on 10/Jun/25 12:15
 

This was unintentionally fixed as part of XRENDERING-790 as it wasn't clear to me that all \ in the regular expression were just escaping characters and none of them matched a plain \. As it is obvious from the definition of special characters and the XWiki syntax parsers that \ should be treated as a special character, I'm keeping the behavior change but making it more obvious with this issue. I've added an explicit integration test for all special characters to ensure that we properly test this behavior.