From b591d23c98990fc358b02b3b78d46290eadb7277 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 2 Feb 2016 18:03:42 +0100 Subject: [PATCH] Dirty fix for bug #7 suggested by sraps --- aeroolib/plugins/opendocument.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aeroolib/plugins/opendocument.py b/aeroolib/plugins/opendocument.py index 4f848e3..e0383cb 100644 --- a/aeroolib/plugins/opendocument.py +++ b/aeroolib/plugins/opendocument.py @@ -1095,6 +1095,8 @@ def check_guess_type(self, tree, namespaces): float(tag[0].text) guess_type = 'float' tag.attrib['{%s}value' % namespaces['office']] = tag[0].text + # AKRETION HACK https://github.com/aeroo/aeroolib/issues/7 + tag.attrib['{%s}value-type' % namespaces['calcext']] = guess_type except (ValueError,TypeError): guess_type = 'string' tag.attrib['{%s}value-type' % namespaces['office']] = guess_type