diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-10-17 09:54:06 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-10-17 09:55:18 -0400 |
commit | f407b66405d4619d99a877c8332a6458fb8a4bbe (patch) | |
tree | a231278c856df7f7cc80c80aaef3660d9fcaa735 /tests/Tests/Readers/RST.hs | |
parent | e666c92bc91a51d49008435dc8555118619037d6 (diff) | |
download | pandoc-f407b66405d4619d99a877c8332a6458fb8a4bbe.tar.gz |
RST reader: Add test for space-before-note.
Diffstat (limited to 'tests/Tests/Readers/RST.hs')
-rw-r--r-- | tests/Tests/Readers/RST.hs | 9 |
1 files changed, 9 insertions, 0 deletions
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")) + ] ] |