Defect #28469 » add-single-quoted.patch
| lib/redmine/wiki_formatting/textile/formatter.rb | ||
|---|---|---|
|
## replace <pre> content
|
||
|
text.gsub!(/<redpre#(\d+)>/) do
|
||
|
content = @pre_list[$1.to_i]
|
||
|
if content.match(/<code\s+class="(\w+)">\s?(.+)/m)
|
||
|
if content.match(/<code\s+class=["'](\w+)["']>\s?(.+)/m)
|
||
|
language = $1
|
||
|
text = $2
|
||
|
if Redmine::SyntaxHighlighting.language_supported?(language)
|
||