Added test for backslash line break

This commit is contained in:
neclepsio 2015-04-23 10:49:08 +02:00
parent 68a3c498f6
commit 58c4ddd431

View File

@ -332,10 +332,34 @@ func TestLineBreak(t *testing.T) {
"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) {