aboutsummaryrefslogtreecommitdiff
path: root/src/Tests/Readers/LaTeX.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tests/Readers/LaTeX.hs')
-rw-r--r--src/Tests/Readers/LaTeX.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Tests/Readers/LaTeX.hs b/src/Tests/Readers/LaTeX.hs
index 7ea4c73ee..6d28441f8 100644
--- a/src/Tests/Readers/LaTeX.hs
+++ b/src/Tests/Readers/LaTeX.hs
@@ -41,6 +41,15 @@ tests = [ testGroup "basic"
header 1 ("text" +++ space +++ link "/url" "" "link")
]
+ , testGroup "space and comments"
+ [ "blank lines + space at beginning" =:
+ "\n \n hi" =?> para "hi"
+ , "blank lines + space + comments" =:
+ "% my comment\n\n \n % another\n\nhi" =?> para "hi"
+ , "comment in paragraph" =:
+ "hi % this is a comment\nthere\n" =?> para "hi there"
+ ]
+
, testGroup "citations"
[ natbibCitations
, biblatexCitations