Skip to content

Commit

Permalink
table: fix escaping of future funtions
Browse files Browse the repository at this point in the history
Issue #1015
  • Loading branch information
jmcnamara committed Oct 9, 2023
1 parent 832f7db commit c32b2a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xlsxwriter/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3403,6 +3403,9 @@ def add_table(self, first_row, first_col, last_row, last_col, options=None):
# Convert Excel 2010 "@" ref to 2007 "#This Row".
formula = formula.replace("@", "[#This Row],")

# Escape any future functions.
formula = self._prepare_formula(formula)

col_data["formula"] = formula
# We write the formulas below after the table data.

Expand Down

0 comments on commit c32b2a1

Please sign in to comment.