Project

General

Profile

Actions

Defect #4243

closed

{{include}} macro mangles HTML entities in <pre> blocks

Added by Chris Miller over 14 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
2009-11-19
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

Use of the include macro garbles HTML entities (specifically < and > characters that I noticed).

Steps to repeat:

1) Create an wiki page (of awesomeness)

blah blah blah stuff about the page

<pre><code class="c">
FSLPoint p; FSLPoint o; o.x = 0; o.y = 0;
FSLPoint s; s.x = 7; s.y = 7;
for(p.x=0; p.x<8; ++p.x)
    for(p.y=0; p.y<8; ++p.y)
        board[FSLPointVectorize(&p, &o, &s)] = 0;
</code>

2) use the include macro to include that page from another page

{{include(mypage)}}

In the page that did the including, the < character shows up as &lsaquo; but on the original page it shows up just fine.

First observed at FSPoint_vectorizationGuide and FSPoint_vectorizeWithOrigin_size as well as FSLPoint_Vectorize.

I think the include macro is washing the page through the HTML entities engine one too many times, but I can't be sure.

Actions #1

Updated by Oskar Nordquist over 14 years ago

Does anyone have a fix for this? I'd really appreciate a quick and dirty hack that solves this problem.

Actions #2

Updated by Mikhail Grinfeld almost 14 years ago

I have same issue:

I created template with

  <pre>
    <some xml>
  </pre>

when I included it in other page, I found
    &lt;some xml&gt;

I have redmine 0.9.2

Actions #3

Updated by Alvaro Herrera over 13 years ago

I have the same issue, though my problematic char of choice is & -- it gets escaped as &

Actions #4

Updated by Etienne Massip about 12 years ago

  • Resolution set to Cant reproduce

Seems that it has been fixed, I can't reproduce?

Actions #5

Updated by Mischa The Evil about 12 years ago

Etienne Massip wrote:

Seems that it has been fixed, I can't reproduce?

Me neither...

Actions #6

Updated by Etienne Massip about 12 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF