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:
parent
2ae0c0d433
commit
99fa850a37
1 changed files with 5 additions and 1 deletions
|
@ -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" [] ()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue