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:
Albert Krewinkel 2020-03-19 21:27:35 +01:00
parent 81d46435f6
commit 44f8c2725e
No known key found for this signature in database
GPG key ID: 388DC0B21F631124
3 changed files with 7 additions and 2 deletions

View file

@ -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,

View file

@ -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

View file

@ -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"