Project

General

Profile

Defect #32971 » 32971-fixed.patch

Yuichi HARADA, 2020-02-17 07:58

View differences:

lib/redmine/wiki_formatting/textile/redcloth3.rb
end
def flush_left( text )
indt = 0
if text =~ /^ /
if /(?![\r\n\t ])[[:cntrl:]]/.match?(text)
text.gsub!(/(?![\r\n\t ])[[:cntrl:]]/, '')
end
if /^ /.match?(text) && text.length > 1
indt = 0
unless text.empty?
indt += 1 while text !~ /^ {#{indt}}[^ ]/
indt += 1 while text !~ /^ {#{indt}}\S/
end
if indt.nonzero?
text.gsub!( /^ {#{indt}}/, '' )
(3-3/5)