diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-11 09:37:45 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-11 09:39:15 +0200 |
commit | f0e7d9eb64f1586daf9b54ee533c5ba0841e031a (patch) | |
tree | 8b155cca8534d74e2f23ea67932b813e146dde53 | |
parent | ab58a180bdf08b38517e5ff603614c69e07bbbf2 (diff) |
writerfilter: drop support for simple list types without constants
In other words, from now it's a must to map ST_Foo simple types to
NS_ooxml::LN_something constants, and raw integers (which are hard to
grep and hard to track down where are they used) are no longer an
option.
Change-Id: I968b27bca3f64f6f4a382b87e2dbc499a3132ea2
-rw-r--r-- | writerfilter/source/ooxml/factoryimpl_ns.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/writerfilter/source/ooxml/factoryimpl_ns.py b/writerfilter/source/ooxml/factoryimpl_ns.py index 610fac01e684..407bb49898eb 100644 --- a/writerfilter/source/ooxml/factoryimpl_ns.py +++ b/writerfilter/source/ooxml/factoryimpl_ns.py @@ -200,11 +200,8 @@ def factoryAttributeToResourceMap(nsNode): def idToLabel(idName): - if ":" in idName: - ns, ln = idName.split(':') - return "NS_%s::LN_%s" % (ns, ln) - else: - return idName + ns, ln = idName.split(':') + return "NS_%s::LN_%s" % (ns, ln) def appendValueData(values, name, value): |