summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/redmine/wiki_formatting/textile/redcloth3.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb
index 10959bf01..d33aede8d 100644
--- a/lib/redmine/wiki_formatting/textile/redcloth3.rb
+++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb
@@ -999,10 +999,10 @@ class RedCloth3 < String
end
def no_textile( text )
- text.gsub!( /(^|\s)==([^=]+.*?)==(\s|$)?/,
- '\1<notextile>\2</notextile>\3' )
- text.gsub!( /^ *==([^=]+.*?)==/m,
- '\1<notextile>\2</notextile>\3' )
+ text.gsub!(/(^|\s)==([^=]+.*?)==(\s|$)?/,
+ '\1<notextile>\2</notextile>\3')
+ text.gsub!(/^ *==([^=]+.*?)==/m,
+ '\1<notextile>\2</notextile>\3')
end
def clean_white_space( text )
@@ -1032,8 +1032,8 @@ class RedCloth3 < String
end
def footnote_ref( text )
- text.gsub!( /\b\[([0-9]+?)\](\s)?/,
- '<sup><a href="#fn\1">\1</a></sup>\2' )
+ text.gsub!(/\b\[([0-9]+?)\](\s)?/,
+ '<sup><a href="#fn\1">\1</a></sup>\2')
end
OFFTAGS = /(code|pre|kbd|notextile)/