bin/flat-odf-cleanup.py |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit c57f9b67aa9735f8dcf966a8110ba9998353068b
Author:     Michael Stahl <[email protected]>
AuthorDate: Fri Sep 1 15:32:07 2023 +0200
Commit:     Michael Stahl <[email protected]>
CommitDate: Thu Sep 14 15:15:06 2023 +0200

    flat-odf-cleanup.py: remove theme
    
    Change-Id: I326a4af0f7f6a910fb51b67f6872c49b1d56bd5d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156918
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/bin/flat-odf-cleanup.py b/bin/flat-odf-cleanup.py
index aa38461c79c6..82c5a0f808ab 100644
--- a/bin/flat-odf-cleanup.py
+++ b/bin/flat-odf-cleanup.py
@@ -366,6 +366,11 @@ def remove_unused(root):
     if scripts is not None:
         root.remove(scripts)
 
+    # remove theme
+    theme = 
root.find(".//{urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0}theme")
+    if theme is not None:
+        theme.getparent().remove(theme)
+
     # TODO: replace embedded image with some tiny one
     # TODO: perhaps replace text with xxx (optionally)?
 

Reply via email to