add-single-quoted.patch

Mizuki ISHIKAWA, 2018-04-16 01:57

Download (695 Bytes)

View differences:

lib/redmine/wiki_formatting/textile/formatter.rb
120 120
            ## replace <pre> content
121 121
            text.gsub!(/<redpre#(\d+)>/) do
122 122
              content = @pre_list[$1.to_i]
123
              if content.match(/<code\s+class="(\w+)">\s?(.+)/m)
123
              if content.match(/<code\s+class=["'](\w+)["']>\s?(.+)/m)
124 124
                language = $1
125 125
                text = $2
126 126
                if Redmine::SyntaxHighlighting.language_supported?(language)