Skip to content

Commit

Permalink
Merge pull request #11 from akretion/master-dirty-fix-bug-float
Browse files Browse the repository at this point in the history
Dirty fix for bug #7 suggested by sraps
  • Loading branch information
sraps authored Mar 17, 2018
2 parents 5c27b23 + b591d23 commit 5c81b15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aeroolib/plugins/opendocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c81b15

Please sign in to comment.