all repos — grayfriday @ 58c4ddd4312ed3590e02b837c785cef03554e530

blackfriday fork with a few changes

Added test for backslash line break
neclepsio neclepsio@gmail.com
Thu, 23 Apr 2015 10:49:08 +0200
commit

58c4ddd4312ed3590e02b837c785cef03554e530

parent

68a3c498f623a18459ca99b842968ece23ee49fd

1 files changed, 24 insertions(+), 0 deletions(-)

jump to
M inline_test.goinline_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) {