Commit 6a2eece2 authored by Jos van den Oever's avatar Jos van den Oever

Remove more unneeded information.

parent 4b25dbea
......@@ -110,7 +110,7 @@
</style:header>
<style:header-left style:display="false"/>
<style:footer>
<text:p>Page <text:page-number>1</text:page-number> </text:p>
<text:p>Page <text:page-number/> </text:p>
</style:footer>
<style:footer-left style:display="false"/>
</style:master-page>
......@@ -127,7 +127,7 @@
</style:header>
<style:header-left style:display="false"/>
<style:footer>
<text:p>Page <text:page-number>1</text:page-number> / <text:page-count>99</text:page-count> </text:p>
<text:p>Page <text:page-number/> / <text:page-count/> </text:p>
</style:footer>
<style:footer-left style:display="false"/>
</style:master-page>
......
......@@ -283,6 +283,17 @@ public class OdfNormalizer {
remove(doc, "/*/office:settings");
remove(doc, "/*/office:scripts");
// remove layout specific values
remove(doc, "//text:page-number/text()");
remove(doc, "//text:page-count/text()");
// 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");
remove(doc, "//text:alphabetical-index-mark-end");
remove(doc, "//text:toc-mark-start");
remove(doc, "//text:toc-mark-end");
// remove continued list for which the first list item explicitly starts
// at position 1
remove(doc,
......
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