Powerpoint writer: avoid extra blank lines before author.

(In the case where there is no subtitle.)

Closes #10619.
This commit is contained in:
John MacFarlane
2025-02-13 14:35:08 -08:00
parent 54039e392d
commit f5d41a0c3f
11 changed files with 3 additions and 1 deletions
+3 -1
View File
@@ -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.