Fix spurious dots in markdown_mmd metadata output
Closes #6133 (regression).
This commit is contained in:
parent
689cb7128f
commit
114d77c2ab
2 changed files with 13 additions and 1 deletions
|
@ -125,7 +125,7 @@ mmdTitleBlock (Context hashmap) =
|
|||
(k', SimpleVal x)
|
||||
| isEmpty x -> empty
|
||||
| otherwise -> k' <> ":" <> space <>
|
||||
nest 2 (chomp (removeBlankLines x))
|
||||
nest 2 (removeBlankLines (chomp x))
|
||||
_ -> empty
|
||||
removeBlankLines BlankLines{} = cr <> text "." <> cr
|
||||
removeBlankLines (Concat x y) = removeBlankLines x <>
|
||||
|
|
12
test/command/6133.md
Normal file
12
test/command/6133.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
```
|
||||
% pandoc -f markdown_mmd -t markdown_mmd -s
|
||||
author: Author
|
||||
title: Title
|
||||
|
||||
Some text
|
||||
^D
|
||||
author: Author
|
||||
title: Title
|
||||
|
||||
Some text
|
||||
```
|
Loading…
Add table
Reference in a new issue