1. Alexey Elfman
  2. odslib

Commits

Alexey Elfman  committed abc22d7

apply fixes odsContent from loic.mer...@gmail.com (issue #1 of original project)

  • Participants
  • Parent commits 480bfdb
  • Branches default

Comments (0)

Files changed (2)

File .hgignore

View file
  • Ignore whitespace
 build/
 *.pyc
 *~
+dist/
+odslib.egg-info/

File odslib/odsContent.py

View file
  • Ignore whitespace
 
     # Cell Values
     def floatValue(self, value):
-        value = str(value)
+        value = unicode(value)
         self.cell.setAttribute("office:value-type", "float")
         self.cell.setAttribute("office:value", "%s" % value)
         self.cell.addChild(Element("text:p", value))
         return self
 
     def stringValue(self, value):
-        value = str(value)
+        value = unicode(value)
         self.cell.setAttribute("office:value-type", "string")
         self.cell.addChild(Element("text:p", value))
         return self
 
     def floatFormula(self, value, formula):
-        value = str(value)
+        value = unicode(value)
         self.cell.setAttribute("office:value-type", "float")
         self.cell.setAttribute("office:value", "%s" % value)
         self.cell.addChild(Element("text:p", value))