aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-03-19 21:27:35 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2020-03-19 21:27:35 +0100
commit44f8c2725eac93ac0df503cb338ba6b076a0ee20 (patch)
tree735117fd8ffb8fb86e04b83c4ca10f3f24d600ea /test/Tests
parent81d46435f6c60d4011de46c3d81c127bc293468d (diff)
downloadpandoc-44f8c2725eac93ac0df503cb338ba6b076a0ee20.tar.gz
Jira reader: fix parsing of tables without preceding blankline
A bug was fixed which caused faulty parsing if a table was not preceded by a newline and the first table cell had no space after the initial `|` characters. Fixes: #6198
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Readers/Jira.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Tests/Readers/Jira.hs b/test/Tests/Readers/Jira.hs
index 4ed8194fd..299db7bed 100644
--- a/test/Tests/Readers/Jira.hs
+++ b/test/Tests/Readers/Jira.hs
@@ -77,6 +77,11 @@ tests =
simpleTable []
[ [para "language", para "haskell", para "lua"]
, [para "type", para "static", para "dynamic"]]
+
+ , "table after paragraph" =:
+ "*tabletest*\n||Name|\n|Test|\n" =?>
+ para (strong "tabletest") <>
+ simpleTable [para "Name"] [[para "Test"]]
]
, testGroup "inlines"