summaryrefslogtreecommitdiffstats
path: root/lib/redcloth3.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-05 10:09:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-05 10:09:18 +0000
commit8841ba97c680fb826b228e8de8a586e61bc428bf (patch)
tree24df1aba6ee7f42b7d30615f4d2930f5250094eb /lib/redcloth3.rb
parent7fb0fe2e910a4188db283c359d9b1d05dad99041 (diff)
downloadredmine-8841ba97c680fb826b228e8de8a586e61bc428bf.tar.gz
redmine-8841ba97c680fb826b228e8de8a586e61bc428bf.zip
Fixed: class attribute with spaces on pre tags truncated (#7033).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4468 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redcloth3.rb')
-rw-r--r--lib/redcloth3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb
index d720af9d8..7c9df0727 100644
--- a/lib/redcloth3.rb
+++ b/lib/redcloth3.rb
@@ -1078,7 +1078,7 @@ class RedCloth3 < String
line = "<redpre##{ @pre_list.length }>"
first.match(/<#{ OFFTAGS }([^>]*)>/)
tag = $1
- $2.to_s.match(/(class\=\S+)/i)
+ $2.to_s.match(/(class\=("[^"]+"|'[^']+'))/i)
tag << " #{$1}" if $1
@pre_list << "<#{ tag }>#{ aftertag }"
end