mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
Powerpoint writer: avoid extra blank lines before author.
(In the case where there is no subtitle.) Closes #10619.
This commit is contained in:
@@ -1752,7 +1752,9 @@ metadataToElement layout titleElems subtitleElems authorsElems dateElems
|
||||
, Just cSld <- findChild (elemName ns "p" "cSld") layout
|
||||
, Just spTree <- findChild (elemName ns "p" "spTree") cSld = do
|
||||
let combinedAuthorElems = intercalate [Break] authorsElems
|
||||
subtitleAndAuthorElems = intercalate [Break, Break] [subtitleElems, combinedAuthorElems]
|
||||
subtitleAndAuthorElems = intercalate [Break, Break] $
|
||||
filter (not . null)
|
||||
[subtitleElems, combinedAuthorElems]
|
||||
(titleId, titleElement) <- nonBodyTextToElement layout [PHType "ctrTitle"] titleElems
|
||||
(subtitleId, subtitleElement) <- nonBodyTextToElement layout [PHType "subTitle"] subtitleAndAuthorElems
|
||||
(dateId, dateElement) <- nonBodyTextToElement layout [PHType "dt"] dateElems
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user