Defect #29681

"x%x%" is rendered as "&" in Textile formatter

Added by Go MAEDA about 3 years ago. Updated about 3 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution: Affected version:

Description

The character sequence described in the subject is always rendered as "&" in Textile formatter. You can easily reproduce this issue by entering the sequence in a description field of an issue.

You see '=> "&"' in the second line of the following text. Actually, it is 'x % x %" (I cannot spell it without spaces due to the bug).

2.3.3 :001 > ['x', '%', 'x', '%'].join
 => "&" 

Related issues

Related to Redmine - Feature #24681: Syntax highlighter: replace CodeRay with Rouge Closed
Related to Redmine - Defect #20758: Ampersand+keyword in code highlighting Closed
Related to Redmine - Defect #35441: Inline image in Textile is not displayed if the image URL... Closed

History

#1 Updated by Go MAEDA about 3 years ago

This is because RedCloth temporarily replaces "&" with "x % x %" (actually, there are no space characters) while converting Textile to HTML.

#2 Updated by Marius BALTEANU about 3 years ago

  • Related to Feature #24681: Syntax highlighter: replace CodeRay with Rouge added

#3 Updated by Go MAEDA about 3 years ago

  • Related to Defect #20758: Ampersand+keyword in code highlighting added

#4 Updated by Mischa The Evil 2 months ago

  • Related to Defect #35441: Inline image in Textile is not displayed if the image URL contains ampersands added

Also available in: Atom PDF