Powerpoint writer: Remove spPr tag from non-body layouts

This was causing headers to be misaligned when some templates were used.
This commit is contained in:
Jesse Rosenthal 2018-03-23 16:20:19 -04:00
parent 2ae0c0d433
commit 99fa850a37

View file

@ -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" [] ()