[Libreoffice-commits] core.git: writerfilter/source
Miklos Vajna
vmiklos at collabora.co.uk
Mon Aug 25 00:41:06 PDT 2014
writerfilter/source/ooxml/modelpreprocess.py | 6 ------
1 file changed, 6 deletions(-)
New commits:
commit 5170d822aa058ff5abc737a50e2b9d8e15b87eab
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Mon Aug 25 09:35:11 2014 +0200
writerfilter: remove unused application attribute
Change-Id: Ic4e16f8303611197e7d2a149e85c7b73dc30bcc8
diff --git a/writerfilter/source/ooxml/modelpreprocess.py b/writerfilter/source/ooxml/modelpreprocess.py
index 6b2e874..1273b12 100644
--- a/writerfilter/source/ooxml/modelpreprocess.py
+++ b/writerfilter/source/ooxml/modelpreprocess.py
@@ -133,12 +133,6 @@ def preprocess(model):
j.setAttribute("prefix", prefix)
j.setAttribute("localname", localname)
- for i in model.getElementsByTagName("grammar"):
- if i.getAttribute("ns").startswith("http://schemas.openxmlformats.org/"):
- i.setAttribute("application", i.getAttribute("ns").replace('http://schemas.openxmlformats.org/', '').split('/')[0])
- else:
- i.setAttribute("application", "")
-
namespacesPath = sys.argv[1]
modelPath = sys.argv[2]
More information about the Libreoffice-commits
mailing list