Fix spurious dots in markdown_mmd metadata output

Closes #6133 (regression).
This commit is contained in:
John MacFarlane 2020-02-10 08:59:19 -08:00
parent 689cb7128f
commit 114d77c2ab
2 changed files with 13 additions and 1 deletions

View file

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