From f407b66405d4619d99a877c8332a6458fb8a4bbe Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Mon, 17 Oct 2016 09:54:06 -0400 Subject: RST reader: Add test for space-before-note. --- tests/Tests/Readers/RST.hs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Tests/Readers/RST.hs b/tests/Tests/Readers/RST.hs index 074d1014c..06a15ad98 100644 --- a/tests/Tests/Readers/RST.hs +++ b/tests/Tests/Readers/RST.hs @@ -163,4 +163,13 @@ tests = [ "line block with blank line" =: =?> para (codeWith ("", ["lhs", "haskell", "sourceCode"], []) "text") , "unknown role" =: ":unknown:`text`" =?> para (str "text") ] + , testGroup "footnotes" + [ "remove space before note" =: unlines + [ "foo [1]_" + , "" + , ".. [1]" + , " bar" + ] =?> + (para $ "foo" <> (note $ para "bar")) + ] ] -- cgit v1.2.3