Defect #32971 » 32971-fixed-v3.patch
| 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
|
||