Project

General

Profile

Defect #29756 » fix-29756-v2.diff

Go MAEDA, 2018-10-15 17:30

View differences:

lib/redmine/wiki_formatting/textile/redcloth3.rb (working copy)
def flush_left( text )
indt = 0
if text =~ /^ /
while text !~ /^ {#{indt}}\S/
while text !~ /^ {#{indt}}[^ ]/
indt += 1
end unless text.empty?
if indt.nonzero?
test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb (working copy)
assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '')
end
# TODO: Remove this test after migrating to RedCloth 4
def test_should_not_crash_with_special_input
assert_nothing_raised { to_html(" \f") }
assert_nothing_raised { to_html(" \v") }
end
private
def assert_html_output(to_test, expect_paragraph = true)
(4-4/4)