Commit 357acb20 authored by Jos van den Oever's avatar Jos van den Oever

Remove empty elements without meaning.

parent e7735198
......@@ -69,14 +69,10 @@
<style:page-layout style:name="pm2">
<style:page-layout-properties style:writing-mode="lr-tb"/>
<style:header-style>
<style:header-footer-properties fo:background-color="#c0c0c0" fo:border="2.49pt solid #000000" fo:margin-bottom="0.25cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:min-height="0.75cm" fo:padding="0.018cm">
<style:background-image/>
</style:header-footer-properties>
<style:header-footer-properties fo:background-color="#c0c0c0" fo:border="2.49pt solid #000000" fo:margin-bottom="0.25cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:min-height="0.75cm" fo:padding="0.018cm"/>
</style:header-style>
<style:footer-style>
<style:header-footer-properties fo:background-color="#c0c0c0" fo:border="2.49pt solid #000000" fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-top="0.25cm" fo:min-height="0.75cm" fo:padding="0.018cm">
<style:background-image/>
</style:header-footer-properties>
<style:header-footer-properties fo:background-color="#c0c0c0" fo:border="2.49pt solid #000000" fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-top="0.25cm" fo:min-height="0.75cm" fo:padding="0.018cm"/>
</style:footer-style>
</style:page-layout>
<style:style style:data-style-name="N619b06" style:family="table-cell" style:name="TC36b879" style:parent-style-name="Default"/>
......
......@@ -289,6 +289,10 @@ public class OdfNormalizer {
remove(doc, "//text:page-number/text()");
remove(doc, "//text:page-count/text()");
// remove empty elements
remove(doc, "//table:named-expressions[not(*) and not(@*)]");
remove(doc, "//style:background-image[not(*) and not(@*)]");
// remove this for odf spec, not for general use
// best is to find a way to make stable identifiers
remove(doc, "//text:alphabetical-index-mark-start");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment