32971-fixed.patch

Yuichi HARADA, 2020-02-17 07:58

Download (824 Bytes)

View differences:

lib/redmine/wiki_formatting/textile/redcloth3.rb
1020 1020
    end
1021 1021

  
1022 1022
    def flush_left( text )
1023
        indt = 0
1024
        if text =~ /^ /
1023
        if /(?![\r\n\t ])[[:cntrl:]]/.match?(text)
1024
            text.gsub!(/(?![\r\n\t ])[[:cntrl:]]/, '')
1025
        end
1026
        if /^ /.match?(text) && text.length > 1
1027
            indt = 0
1025 1028
            unless text.empty?
1026
                indt += 1 while text !~ /^ {#{indt}}[^ ]/
1029
                indt += 1 while text !~ /^ {#{indt}}\S/
1027 1030
            end
1028 1031
            if indt.nonzero?
1029 1032
                text.gsub!( /^ {#{indt}}/, '' )