Skip to content

Commit c32b2a1

Browse files
committed
table: fix escaping of future funtions
Issue #1015
1 parent 832f7db commit c32b2a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xlsxwriter/worksheet.py

+3
Original file line numberDiff line numberDiff line change
@@ -3403,6 +3403,9 @@ def add_table(self, first_row, first_col, last_row, last_col, options=None):
34033403
# Convert Excel 2010 "@" ref to 2007 "#This Row".
34043404
formula = formula.replace("@", "[#This Row],")
34053405

3406+
# Escape any future functions.
3407+
formula = self._prepare_formula(formula)
3408+
34063409
col_data["formula"] = formula
34073410
# We write the formulas below after the table data.
34083411

0 commit comments

Comments
 (0)