-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress "literal string will be frozen" warnings
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|
@@ -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" | ||
|