Defect #29756 » fix-29756.diff
lib/redmine/wiki_formatting/textile/redcloth3.rb (working copy) | ||
---|---|---|
1034 | 1034 |
def flush_left( text ) |
1035 | 1035 |
indt = 0 |
1036 | 1036 |
if text =~ /^ / |
1037 |
while text !~ /^ {#{indt}}\S/
|
|
1037 |
while text !~ /^ {#{indt}}[^ ]/
|
|
1038 | 1038 |
indt += 1 |
1039 | 1039 |
end unless text.empty? |
1040 | 1040 |
if indt.nonzero? |
test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb (working copy) | ||
---|---|---|
599 | 599 |
assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '') |
600 | 600 |
end |
601 | 601 | |
602 |
def test_should_not_be_broken_by_special_input |
|
603 |
assert_nothing_raised { to_html(" \f") } |
|
604 |
assert_nothing_raised { to_html(" \v") } |
|
605 |
end |
|
606 | ||
602 | 607 |
private |
603 | 608 | |
604 | 609 |
def assert_html_output(to_test, expect_paragraph = true) |