From 2ff1426388c66018ddd5b045a9c2e622d70aa622 Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 13 Apr 2023 12:31:03 +0200 Subject: Fix typos regarding "escape formulas" in readme and example --- README.md | 2 +- examples/escape_formula_example.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c1076c5..b1544785 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ Axlsx.escape_formulas = true Then, set the following on each cell you'd like to add a formula: ```ruby -cell.escape_formulas = true +cell.escape_formulas = false ``` Refer to examples/escape_formula.md for how to set `escape_formulas` on the workbook, worksheet, row and/or cell level. diff --git a/examples/escape_formula_example.md b/examples/escape_formula_example.md index 9a8efc21..72015866 100644 --- a/examples/escape_formula_example.md +++ b/examples/escape_formula_example.md @@ -10,7 +10,7 @@ The following are possible: | Global | `Axlsx.escape_formulas = true` | Affects worksheets created *after* setting. Does not affect existing worksheets. | | Workbook | `workbook.escape_formulas = true` | Affects child worksheets added *after* setting. Does not affect existing child worksheets. | | Worksheet | `workbook.add_worksheet(name: 'Name', escape_formulas: true)` | | -| Worksheet | `worksheet.worksheet = true` | Affects child rows/cells added *after* setting. Does not affect existing child rows/cells. | +| Worksheet | `worksheet.escape_formulas = true` | Affects child rows/cells added *after* setting. Does not affect existing child rows/cells. | | Row | `worksheet.add_row(['=FOO()', '=BAR()], escape_formulas: [true, false])` | Can specify as either Boolean (all cells) or Array (one value per cell). | | Row | `row.escape_formulas = [true, false]` | Changes the `escape_formulas` value on existing cells. Can use either Boolean or Array. | | Cell | `cell.escape_formulas = true` | | -- cgit v1.2.3