diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-09-01 15:32:07 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-09-14 15:15:06 +0200 |
commit | c57f9b67aa9735f8dcf966a8110ba9998353068b (patch) | |
tree | 7a188d92b7b6b004a6c844aed36d0d1e6119c83e /bin/flat-odf-cleanup.py | |
parent | eb2e7483727c060b0aa735f401aaa89cc0505200 (diff) |
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 <michael.stahl@allotropia.de>
Diffstat (limited to 'bin/flat-odf-cleanup.py')
-rw-r--r-- | bin/flat-odf-cleanup.py | 5 |
1 files changed, 5 insertions, 0 deletions
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)? |