Defect #7375
closed
<pre> ... </pre> doesn't escape wiki syntax correctly
Added by Michele d'Amico over 13 years ago.
Updated almost 13 years ago.
Description
Try this wiki code (see http://demo.redmine.org/projects/testcode/wiki/Wiki):
does really escape?
<code class="ruby">
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end
</code>
I think that the pre
tag blocks should escape the wiki syntax at all without "see" any wiki code like tags
Files
- Status changed from New to Closed
- Resolution set to Invalid
The "does really escape?" string is not inside a pre tag.
Past your example in a simple html page and see how firefox renders it.
I'm sorry, maybe the body of my bug is affected to that bug to:
I've attached the wiki text that I wrote in the body and I think it should become like this where pode
is replaced by code
:
<pode java>
does really escape?
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end
I know that pre
tag block is a wiki to html escape, but I think a wiki to simple text escape could be useful too (something like {{nowiki}}
, {{nowiki_end}}
macros).
I found that issue while writing a dokuwiki to redmine's wiki translator and maybe that is a very rare case; if you think that is not a bug or it is how redmine's wiki should work close it and please forgive me for the noise.
Just a question: how can I write <pode>
where pode
is replaced by code
with redmine's wiki engine?
Regards
--Michele
- Category set to Text formatting
Any developments on this?
In my case I'm trying to display xml containing a <kode> (:s/k/c/) tag inside a
<pre></pre>
blog.
I found that by doubling the tags, i.e. using <code>728</code>
I can show at least one pair.
- Status changed from Reopened to Closed
- Resolution changed from Invalid to Duplicate
Also available in: Atom
PDF