1. richarddavis
  2. openpyxl

Commits

Eric Gazoni  committed 80c1efb

[writer] fixed data type issue for shared strings

  • Participants
  • Parent commits 3d9ddd2
  • Branches default

Comments (0)

Files changed (1)

File src/openpyxl/writer/worksheet.py

View file
             coordinate = cell.get_coordinate()
 
             attributes = {'r' : coordinate}
+            attributes['t'] = cell.data_type
 
             if coordinate in worksheet._styles:
                 attributes['s'] = '%d' % get_style_id_by_hash(current_style = worksheet._styles[coordinate],
                                                               style_table = style_table)
-            else:
-                attributes['t'] = cell.data_type
 
             c = SubElement(row, 'c', attributes)