Skip to content

Commit

Permalink
Suppress "literal string will be frozen" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 22, 2024
1 parent 6a34485 commit 1c349af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/chupa-text/decomposers/opendocument-spreadsheet.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2019 Kouhei Sutou <[email protected]>
# Copyright (C) 2019-2024 Sutou Kouhei <[email protected]>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -96,9 +96,9 @@ def start_element(uri, local_name, qname, attributes)
when "table-row"
@sheets.last[:rows] << []
when "table-cell"
@sheets.last[:rows].last << {text: ""}
@sheets.last[:rows].last << {text: +""}
when "covered-table-cell"
@sheets.last[:rows].last << {text: ""}
@sheets.last[:rows].last << {text: +""}
when "shapes"
@in_shapes = true
end
Expand All @@ -116,7 +116,7 @@ def end_element(uri, local_name, qname)
case local_name
when "table"
sheet = @sheets.last
text = ""
text = +""
shape_texts = sheet[:shape_texts]
unless shape_texts.empty?
text << shape_texts.join("\n") << "\n"
Expand Down

0 comments on commit 1c349af

Please sign in to comment.