Project

General

Profile

Defect #28469 » add-single-quoted.patch

Mizuki ISHIKAWA, 2018-04-16 01:57

View differences:

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)
(2-2/3)