Project

General

Profile

Actions

Defect #29681

open

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

Defect #29681: "x%x%" is rendered as "&" in Textile formatter

Added by Go MAEDA about 8 years ago. Updated 21 days ago.

Status:
New
Priority:
Normal
Assignee:
-
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 3 (0 open — 3 closed)

Related to Redmine - Feature #24681: Syntax highlighter: replace CodeRay with RougeClosedJean-Philippe LangActions
Related to Redmine - Defect #20758: Ampersand+keyword in code highlightingClosedActions
Related to Redmine - Defect #35441: Inline image in Textile is not displayed if the image URL contains ampersandsClosedGo MAEDAActions

Updated by Go MAEDA about 8 years ago Actions #1

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

  • source:tags/3.4.6/lib/redmine/wiki_formatting/textile/redcloth3.rb#L1010
  • source:tags/3.4.6/lib/redmine/wiki_formatting/textile/redcloth3.rb#L313

Updated by Marius BĂLTEANU about 8 years ago Actions #2

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

Updated by Go MAEDA about 8 years ago Actions #3

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

Updated by Mischa The Evil over 5 years ago Actions #4

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

Updated by Philippe Cloutier 21 days ago Actions #5

Thanks for reporting, this persists on this website.
The problematic sequence can be displayed by marking it up with HTML character references: “x%x%”.

Updated by Go MAEDA 21 days ago Actions #6

Philippe Cloutier wrote in #note-5:

Thanks for reporting, this persists on this website.
The problematic sequence can be displayed by marking it up with HTML character references: “x%x%”.

Please avoid adding comments to old issues unless you have new information that helps resolve them.

Comments that repeat known information without adding anything new create unnecessary notifications and make issue histories harder to follow.

When commenting on an existing issue, please provide useful new information, such as additional reproduction details, new findings, or a possible fix.

Actions

Also available in: PDF Atom