handle carriage return in newlines_to_br

This commit is contained in:
Unending
2021-01-16 18:49:01 +01:00
parent 3c499d0241
commit 3cae09b968
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -539,6 +539,7 @@ class StandardFiltersTest < Minitest::Test
def test_newlines_to_br
assert_template_result("a<br />\nb<br />\nc", "{{ source | newline_to_br }}", 'source' => "a\nb\nc")
assert_template_result("a<br />\nb<br />\nc", "{{ source | newline_to_br }}", 'source' => "a\r\nb\nc")
end
def test_plus