debian-python-odf/debian/patches/fix_chinese_ods.patch

20 lines
656 B
Diff

Description: Fixes loading of Chinese ODS file
Author: W. Martin Borgert <debacle@debian.org>
Origin: vendor
Bug: https://github.com/eea/odfpy/issues/19
Bug-Debian: https://bugs.debian.org/783789
Last-Update: 2015-07-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/odf/attrconverters.py
+++ b/odf/attrconverters.py
@@ -103,7 +103,7 @@
def __save_prefix(attribute, arg, element):
prefix = arg.split(':',1)[0]
if prefix == arg:
- return str(arg)
+ return arg
namespace = element.get_knownns(prefix)
if namespace is None:
#raise ValueError( "'%s' is an unknown prefix" % str(prefix))