Org writer: fix extra blank line inserted after empty list item.
Addresses issue 2 from #7810.
This commit is contained in:
parent
252211bd27
commit
8736fe11ee
1 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ bulletListItemToOrg items = do
|
||||||
exts <- gets $ writerExtensions . stOptions
|
exts <- gets $ writerExtensions . stOptions
|
||||||
contents <- blockListToOrg (taskListItemToOrg exts items)
|
contents <- blockListToOrg (taskListItemToOrg exts items)
|
||||||
return $ hang 2 "- " contents $$
|
return $ hang 2 "- " contents $$
|
||||||
if endsWithPlain items
|
if null items || endsWithPlain items
|
||||||
then cr
|
then cr
|
||||||
else blankline
|
else blankline
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ orderedListItemToOrg marker counter items = do
|
||||||
counter
|
counter
|
||||||
return $ hang (T.length marker + 1)
|
return $ hang (T.length marker + 1)
|
||||||
(literal marker <> cookie <> space) contents $$
|
(literal marker <> cookie <> space) contents $$
|
||||||
if endsWithPlain items
|
if null items || endsWithPlain items
|
||||||
then cr
|
then cr
|
||||||
else blankline
|
else blankline
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue