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