@@ -97,7 +97,7 module Redmine | |||
|
97 | 97 | end |
|
98 | 98 | end |
|
99 | 99 | sections = [before.strip, s.strip, after.strip] |
|
100 | sections.each {|section| smooth_offtags section} | |
|
100 | sections.each {|section| smooth_offtags_without_code_highlighting section} | |
|
101 | 101 | sections |
|
102 | 102 | end |
|
103 | 103 | |
@@ -109,6 +109,7 module Redmine | |||
|
109 | 109 | text.gsub!( /(.)\n(?!\n|\Z| *([#*=]+(\s|$)|[{|]))/, "\\1<br />" ) if hard_breaks |
|
110 | 110 | end |
|
111 | 111 | |
|
112 | alias :smooth_offtags_without_code_highlighting :smooth_offtags | |
|
112 | 113 | # Patch to add code highlighting support to RedCloth |
|
113 | 114 | def smooth_offtags( text ) |
|
114 | 115 | unless @pre_list.empty? |
General Comments 0
You need to be logged in to leave comments.
Login now