[FIX] don't coerce values to str before writing them to the worksheet in excel export
especially since xlwt is perfectly able to deal with unicode instances without blowing up like a 'tard bzr revid: xmo@openerp.com-20110830134305-iu354whbr0c0kvpw
This commit is contained in:
parent
9df1318f4f
commit
3b824c76e9
|
@ -1308,8 +1308,8 @@ class ExcelExport(Export):
|
|||
|
||||
for row_index, row in enumerate(rows):
|
||||
for cell_index, cell_value in enumerate(row):
|
||||
cell_value = str(cell_value)
|
||||
cell_value = re.sub("\r", " ", cell_value)
|
||||
if isinstance(cell_value, basestring):
|
||||
cell_value = re.sub("\r", " ", cell_value)
|
||||
worksheet.write(row_index + 1, cell_index, cell_value, style)
|
||||
|
||||
fp = StringIO()
|
||||
|
|
Loading…
Reference in New Issue