comparison 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
comparison
equal deleted inserted replaced
39:150ceac17a8d 117:af80e5618e9b
1076 ### and it breaks following lines 1076 ### and it breaks following lines
1077 htmlesc( aftertag, :NoQuotes ) if aftertag && escape_aftertag && !first.match(/<code\s+class="(\w+)">/) 1077 htmlesc( aftertag, :NoQuotes ) if aftertag && escape_aftertag && !first.match(/<code\s+class="(\w+)">/)
1078 line = "<redpre##{ @pre_list.length }>" 1078 line = "<redpre##{ @pre_list.length }>"
1079 first.match(/<#{ OFFTAGS }([^>]*)>/) 1079 first.match(/<#{ OFFTAGS }([^>]*)>/)
1080 tag = $1 1080 tag = $1
1081 $2.to_s.match(/(class\=\S+)/i) 1081 $2.to_s.match(/(class\=("[^"]+"|'[^']+'))/i)
1082 tag << " #{$1}" if $1 1082 tag << " #{$1}" if $1
1083 @pre_list << "<#{ tag }>#{ aftertag }" 1083 @pre_list << "<#{ tag }>#{ aftertag }"
1084 end 1084 end
1085 elsif $1 and codepre > 0 1085 elsif $1 and codepre > 0
1086 if codepre - used_offtags.length > 0 1086 if codepre - used_offtags.length > 0