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
This commit is contained in:
parent
81d46435f6
commit
44f8c2725e
3 changed files with 7 additions and 2 deletions
|
@ -412,7 +412,7 @@ library
|
|||
blaze-html >= 0.9 && < 0.10,
|
||||
blaze-markup >= 0.8 && < 0.9,
|
||||
vector >= 0.10 && < 0.13,
|
||||
jira-wiki-markup >= 1.1.2 && < 1.2,
|
||||
jira-wiki-markup >= 1.1.3 && < 1.2,
|
||||
hslua >= 1.0.1 && < 1.1,
|
||||
hslua-module-system >= 0.2 && < 0.3,
|
||||
hslua-module-text >= 0.2 && < 0.3,
|
||||
|
|
|
@ -20,7 +20,7 @@ extra-deps:
|
|||
- regex-pcre-builtin-0.95.0.8.8.35
|
||||
- doclayout-0.3
|
||||
- emojis-0.1
|
||||
- jira-wiki-markup-1.1.2
|
||||
- jira-wiki-markup-1.1.3
|
||||
- HsYAML-0.2.0.0
|
||||
- HsYAML-aeson-0.2.0.0
|
||||
- doctemplates-0.8.1
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue