diff options
| author | Paul Kmiec <[email protected]> | 2023-05-02 02:02:16 -0700 |
|---|---|---|
| committer | Paul Kmiec <[email protected]> | 2023-05-15 16:58:24 -0700 |
| commit | 1413f9be2cef8e0cc77113b94d1d0e4a7afc8ed6 (patch) | |
| tree | 6e68302c9edb7f767a2abf58494cd0b83aec5330 /lib | |
| parent | 3b9ac17d8e4dc8b315ac307ffad6f2aa0cb96741 (diff) | |
| download | caxlsx-1413f9be2cef8e0cc77113b94d1d0e4a7afc8ed6.tar.gz caxlsx-1413f9be2cef8e0cc77113b94d1d0e4a7afc8ed6.zip | |
Treat escape_formulas similar to type, style, formula_value
This avoid parse_options doing anything which can be expensive if it
happens for each cell.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/cell.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb index 929a7c28..74ca7360 100644 --- a/lib/axlsx/workbook/worksheet/cell.rb +++ b/lib/axlsx/workbook/worksheet/cell.rb @@ -45,9 +45,10 @@ module Axlsx self.style = val unless val.nil? || val == 0 val = options.delete(:formula_value) self.formula_value = val unless val.nil? + val = options.delete(:escape_formulas) + self.escape_formulas = val.nil? ? row.worksheet.escape_formulas : val parse_options(options) - self.escape_formulas = row.worksheet.escape_formulas if escape_formulas.nil? self.value = value value.cell = self if contains_rich_text? |
