Mercurial > hg > soundsoftware-site
diff lib/redcloth3.rb @ 117:af80e5618e9b redmine-1.1
* Update to Redmine 1.1-stable branch (Redmine SVN rev 4707)
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 12:53:21 +0000 |
parents | 94944d00e43c |
children | cbce1fd3b1b7 |
line wrap: on
line diff
--- a/lib/redcloth3.rb Fri Nov 19 14:05:24 2010 +0000 +++ b/lib/redcloth3.rb Thu Jan 13 12:53:21 2011 +0000 @@ -1078,7 +1078,7 @@ 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