From 7f7d0a0a8ece1cd18313b4812c4656b1f24098cf Mon Sep 17 00:00:00 2001 From: christinalavingia Date: Wed, 5 Apr 2023 12:01:16 -0700 Subject: [PATCH] Bump version of gem for Invoca fork --- CHANGELOG.md | 4 ++++ lib/xlsxtream/version.rb | 2 +- lib/xlsxtream/xml.rb | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dcc0a3..3b2efaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.5.0 (2020-04-05) + +- Ensure that we escape the first underscore character in plaintext strings that match the format for Excel escape sequences. + ## 2.4.0 (2020-06-27) - Allow writing worksheets without a block using add\_worksheet (#42, #45) diff --git a/lib/xlsxtream/version.rb b/lib/xlsxtream/version.rb index d1c9302..24f90a0 100644 --- a/lib/xlsxtream/version.rb +++ b/lib/xlsxtream/version.rb @@ -1,4 +1,4 @@ # frozen_string_literal: true module Xlsxtream - VERSION = '2.4.0'.freeze + VERSION = '2.5.0'.freeze end diff --git a/lib/xlsxtream/xml.rb b/lib/xlsxtream/xml.rb index 1aed778..ae142da 100644 --- a/lib/xlsxtream/xml.rb +++ b/lib/xlsxtream/xml.rb @@ -41,7 +41,7 @@ def escape_attr(string) # Ensure that we escape the first underscore character in plaintext strings that match the format for Excel escape sequences. # This ensures that these strings are displayed as plaintext and not incorrectly parsed as escape sequences by Excel - # Per Microsoft Open Specifications for Excel: + # Per Microsoft Open Specifications for Excel: https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/d34ae755-c53f-4a44-a363-c6dd3ee018a4 # Underscore (0x005f): This character shall be escaped only when used to escape the first underscore character in the format _xHHHH_. def escape_strings_that_match_excel_escape_sequence(string) string.gsub(HEX_ESCAPE_REGEXP) do |match|