comparison lib/.svn/text-base/redcloth3.rb.svn-base @ 119:8661b858af72

* Update to Redmine trunk rev 4705
author Chris Cannam
date Thu, 13 Jan 2011 14:12:06 +0000
parents 94944d00e43c
children cbce1fd3b1b7
comparison
equal deleted inserted replaced
39:150ceac17a8d 119:8661b858af72
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