From c7c30f2fe05b6557454bc7e866f5091b24d8a975 Mon Sep 17 00:00:00 2001 From: johnnyshields Date: Sat, 1 Apr 2023 09:59:04 +0900 Subject: Fix global setting of escape_formulas --- lib/axlsx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3