Project

General

Profile

Defect #32971 » 32971-fixed-v3.patch

Yuichi HARADA, 2020-02-19 07:17

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 =~ /^ /
1025
            unless text.empty?
1026
                indt += 1 while text !~ /^ {#{indt}}[^ ]/
1027
            end
1023
        if /(?![\r\n\t ])[[:cntrl:]]/.match?(text)
1024
            text.gsub!(/(?![\r\n\t ])[[:cntrl:]]/, '')
1025
        end
1026
        if /^ +\S/.match?(text)
1027
            indt = 0
1028
            indt += 1 while !/^ {#{indt}}\S/.match?(text)
1028 1029
            if indt.nonzero?
1029 1030
                text.gsub!( /^ {#{indt}}/, '' )
1030 1031
            end
(4-4/5)