diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-05 10:09:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-05 10:09:18 +0000 |
commit | 8841ba97c680fb826b228e8de8a586e61bc428bf (patch) | |
tree | 24df1aba6ee7f42b7d30615f4d2930f5250094eb /lib/redcloth3.rb | |
parent | 7fb0fe2e910a4188db283c359d9b1d05dad99041 (diff) | |
download | redmine-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.rb | 2 |
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 |