summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-10-12 19:13:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-10-12 19:13:36 +0000
commit2ed9aa13f3f378a4498d0b45ad1dfb9e0012614e (patch)
tree60be9c0beff04e56f0106185202b22457a17b1b5 /lib
parent52e422da61848d97d0f4dada406f23545e579318 (diff)
downloadredmine-2ed9aa13f3f378a4498d0b45ad1dfb9e0012614e.tar.gz
redmine-2ed9aa13f3f378a4498d0b45ad1dfb9e0012614e.zip
Remove pre tag attributes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1930 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redcloth3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb
index cbca2bfd1..6f4fc9863 100644
--- a/lib/redcloth3.rb
+++ b/lib/redcloth3.rb
@@ -1051,7 +1051,7 @@ class RedCloth3 < String
else
htmlesc( aftertag, :NoQuotes ) if aftertag
line = "<redpre##{ @pre_list.length }>"
- @pre_list << "#{ $3 }#{ aftertag }"
+ @pre_list << "#{ $3.gsub(/<(#{ OFFTAGS })[^>]*>/, '<\\1>') }#{ aftertag }"
end
elsif $1 and codepre > 0
if codepre - used_offtags.length > 0