summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx.rb b/lib/axlsx.rb
index c3532b72..a21d6dfa 100644
--- a/lib/axlsx.rb
+++ b/lib/axlsx.rb
@@ -207,7 +207,7 @@ module Axlsx
# See https://www.owasp.org/index.php/CSV_Injection for details.
# @return [Boolean]
def self.escape_formulas
- @escape_formulas || false
+ @escape_formulas.nil? ? false : @escape_formulas
end
# Sets whether to treat values starting with an equals sign as formulas or as literal strings.