diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2023-01-20 10:29:40 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-01-20 10:29:40 -0800 |
| commit | 6ebabd211882c245d05f0b8278c518ebacec2a4d (patch) | |
| tree | a957b393699a5789e810ddcb1068f044ed504f41 /src | |
| parent | 62e14233cd52f372e0ebb4897857b35864425063 (diff) | |
HTML writer: don't omit newlines in task lists.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 3af53408b..0d9346a07 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -500,7 +500,9 @@ listItemToHtml opts bls checkbox' = H.input ! A.type_ "checkbox" isContents <- inlineListToHtml opts is bsContents <- blockListToHtml opts bs - return $ constr (checkbox >> isContents) >> bsContents + return $ constr (checkbox >> isContents) >> + (if null bs then mempty else nl) >> + bsContents -- | Construct table of contents from list of elements. tableOfContents :: PandocMonad m => WriterOptions -> [Block] |
