Skip to content

Commit

Permalink
Bump version of gem for Invoca fork
Browse files Browse the repository at this point in the history
  • Loading branch information
lavham committed Apr 5, 2023
1 parent c51490f commit 7f7d0a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/xlsxtream/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module Xlsxtream
VERSION = '2.4.0'.freeze
VERSION = '2.5.0'.freeze
end
2 changes: 1 addition & 1 deletion lib/xlsxtream/xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 7f7d0a0

Please sign in to comment.