Project

General

Profile

« Previous | Next » 

Revision 1993

Fixes syntax highlighting broken by r1930 (#2143).

View differences:

redcloth3.rb
1051 1051
                    else
1052 1052
                        htmlesc( aftertag, :NoQuotes ) if aftertag
1053 1053
                        line = "<redpre##{ @pre_list.length }>"
1054
                        @pre_list << "#{ $3.gsub(/<(#{ OFFTAGS })[^>]*>/, '<\\1>') }#{ aftertag }"
1054
                        $3.match(/<#{ OFFTAGS }([^>]*)>/)
1055
                        tag = $1
1056
                        $2.to_s.match(/(class\=\S+)/i)
1057
                        tag << " #{$1}" if $1
1058
                        @pre_list << "<#{ tag }>#{ aftertag }"
1055 1059
                    end
1056 1060
                elsif $1 and codepre > 0
1057 1061
                    if codepre - used_offtags.length > 0

Also available in: Unified diff