diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-04-22 09:25:15 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-22 09:25:15 +0200 |
| commit | ec018a0075744e982ead45dee73691aadfaedab0 (patch) | |
| tree | e6c2e2ed940a781e6b0a8657e2c5f40f245d3622 | |
| parent | abd59ab74ac9c0e50e663a12866e8f8a6d579240 (diff) | |
| parent | 2ff1426388c66018ddd5b045a9c2e622d70aa622 (diff) | |
| download | caxlsx-ec018a0075744e982ead45dee73691aadfaedab0.tar.gz caxlsx-ec018a0075744e982ead45dee73691aadfaedab0.zip | |
Merge pull request #203 from caxlsx/fix-typos-in-readme-and-example
Fix typos regarding "escape formulas" in readme and example
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | examples/escape_formula_example.md | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -131,7 +131,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` | | |
