From 99fa850a37cc3e56b415754c70ea2d98da709584 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Fri, 23 Mar 2018 16:20:19 -0400 Subject: Powerpoint writer: Remove spPr tag from non-body layouts This was causing headers to be misaligned when some templates were used. --- src/Text/Pandoc/Writers/Powerpoint/Output.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/Powerpoint/Output.hs b/src/Text/Pandoc/Writers/Powerpoint/Output.hs index 2716bc08b..bad97547d 100644 --- a/src/Text/Pandoc/Writers/Powerpoint/Output.hs +++ b/src/Text/Pandoc/Writers/Powerpoint/Output.hs @@ -1036,7 +1036,11 @@ nonBodyTextToElement layout phType paraElements let txBody = mknode "p:txBody" [] $ [mknode "a:bodyPr" [] (), mknode "a:lstStyle" [] ()] ++ [element] - return $ replaceNamedChildren ns "p" "txBody" [txBody] sp + emptySpPr = mknode "p:spPr" [] () + return $ + replaceNamedChildren ns "p" "txBody" [txBody] $ + replaceNamedChildren ns "p" "spPr" [emptySpPr] $ + sp -- XXX: TODO | otherwise = return $ mknode "p:sp" [] () -- cgit v1.2.3