Added test for backslash line break
neclepsio neclepsio@gmail.com
Thu, 23 Apr 2015 10:49:08 +0200
1 files changed,
24 insertions(+),
0 deletions(-)
jump to
M
inline_test.go
→
inline_test.go
@@ -332,10 +332,34 @@
"this line \ndoes not\n", "<p>this line\ndoes not</p>\n", + "this line\\\ndoes not\n", + "<p>this line\\\ndoes not</p>\n", + + "this line\\ \ndoes not\n", + "<p>this line\\\ndoes not</p>\n", + "this has an \nextra space\n", "<p>this has an<br />\nextra space</p>\n", } doTestsInline(t, tests) + + tests = []string{ + "this line \nhas a break\n", + "<p>this line<br />\nhas a break</p>\n", + + "this line \ndoes not\n", + "<p>this line\ndoes not</p>\n", + + "this line\\\nhas a break\n", + "<p>this line<br />\nhas a break</p>\n", + + "this line\\ \ndoes not\n", + "<p>this line\\\ndoes not</p>\n", + + "this has an \nextra space\n", + "<p>this has an<br />\nextra space</p>\n", + } + doTestsInlineParam(t, tests, EXTENSION_BACKSLASH_LINE_BREAK, 0, HtmlRendererParameters{}) } func TestInlineLink(t *testing.T) {