From 2ed9aa13f3f378a4498d0b45ad1dfb9e0012614e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 12 Oct 2008 19:13:36 +0000 Subject: Remove pre tag attributes. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1930 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redcloth3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 = "" - @pre_list << "#{ $3 }#{ aftertag }" + @pre_list << "#{ $3.gsub(/<(#{ OFFTAGS })[^>]*>/, '<\\1>') }#{ aftertag }" end elsif $1 and codepre > 0 if codepre - used_offtags.length > 0 -- cgit v1.2.3