diff options
Diffstat (limited to '')
-rw-r--r-- | tests/misc_tabs.rs | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/tests/misc_tabs.rs b/tests/misc_tabs.rs index 568172e..e82738d 100644 --- a/tests/misc_tabs.rs +++ b/tests/misc_tabs.rs @@ -204,22 +204,20 @@ fn tabs_text() { "should support a space starting, and a tab ending, code" ); - // To do: trim trailing whitespace. - // // Note: CM does not strip it in this case. - // // However, that should be a bug there: makes more sense to remove it like - // // trailing spaces. - // assert_eq!( - // micromark("x\t\ny"), - // "<p>x\ny</p>", - // "should support a trailing tab at a line ending in a paragraph" - // ); - - // To do: trim trailing whitespace. - // assert_eq!( - // micromark("x\n\ty"), - // "<p>x\ny</p>", - // "should support an initial tab after a line ending in a paragraph" - // ); + // Note: CM does not strip it in this case. + // However, that should be a bug there: makes more sense to remove it like + // trailing spaces. + assert_eq!( + micromark("x\t\ny"), + "<p>x\ny</p>", + "should support a trailing tab at a line ending in a paragraph" + ); + + assert_eq!( + micromark("x\n\ty"), + "<p>x\ny</p>", + "should support an initial tab after a line ending in a paragraph" + ); assert_eq!( micromark("x[\ty](z)"), |