Skip to content

Commit

Permalink
Merge pull request #10 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 ede8ad6 + b591d23 commit 1c3af00
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 @@ -1087,6 +1087,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 1c3af00

Please sign in to comment.