Skip to content

Commit

Permalink
Merge pull request #2 from jwal/patch-1
Browse files Browse the repository at this point in the history
Fix `AttributeError` for `write_formula_string`
  • Loading branch information
tonyroberts committed May 6, 2015
2 parents 60d11cd + cb52822 commit 983091f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xltable/worksheet.py
Expand Up @@ -459,7 +459,7 @@ def _get_xlsx_style(cell_style):
cell = data[y][x]
if isinstance(cell, str):
cell_str = cell.encode("ascii", "xmlcharrefreplace").decode("ascii")
ws.write_formula_string(ir, ic, cell_str, style)
ws.write_formula(ir, ic, cell_str, style)
else:
ws.write(ir, ic, cell, style)

Expand Down

0 comments on commit 983091f

Please sign in to comment.