diff options
-rwxr-xr-x | writerfilter/qa/ooxml/watch-generated-code.sh | 3 | ||||
-rw-r--r-- | writerfilter/source/ooxml/modelpreprocess.py | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/writerfilter/qa/ooxml/watch-generated-code.sh b/writerfilter/qa/ooxml/watch-generated-code.sh index 86acaf71b8ec..d6745731759d 100755 --- a/writerfilter/qa/ooxml/watch-generated-code.sh +++ b/writerfilter/qa/ooxml/watch-generated-code.sh @@ -32,6 +32,9 @@ reference) compare) for i in $writerfilter_ALL do + if [ "$(basename $i)" == "model_preprocessed.xml" ]; then + continue + fi diff -u $mydir-reference/$i $mydir/$i done ;; diff --git a/writerfilter/source/ooxml/modelpreprocess.py b/writerfilter/source/ooxml/modelpreprocess.py index 022568f91ded..82e5e3fb69fd 100644 --- a/writerfilter/source/ooxml/modelpreprocess.py +++ b/writerfilter/source/ooxml/modelpreprocess.py @@ -149,15 +149,6 @@ def preprocess(model): j.setAttribute("prefix", prefix) j.setAttribute("localname", localname) - for j in i.getElementsByTagName("define") + i.getElementsByTagName("ref"): - name = j.getAttribute("name") - if name.startswith("CT_") or name.startswith("EG_") or name.startswith("AG_"): - j.setAttribute("classfordefine", "1") - elif name in startElements: - j.setAttribute("classfordefine", "1") - else: - j.setAttribute("classfordefine", "0") - 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]) |