diff --git a/lib/chupa-text/decomposers/opendocument-spreadsheet.rb b/lib/chupa-text/decomposers/opendocument-spreadsheet.rb index c660c26..f0e889f 100644 --- a/lib/chupa-text/decomposers/opendocument-spreadsheet.rb +++ b/lib/chupa-text/decomposers/opendocument-spreadsheet.rb @@ -1,4 +1,4 @@ -# Copyright (C) 2019 Kouhei Sutou +# Copyright (C) 2019-2024 Sutou Kouhei # # 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"