summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/cell_serializer.rb
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-05-17 09:52:58 +0200
committerGitHub <[email protected]>2023-05-17 09:52:58 +0200
commitdf919fffb9ccef3eb343f7aaf70206da8f3c8073 (patch)
treec1c264d6e8f16904eaf6d7343faffb1ce24aafc5 /lib/axlsx/workbook/worksheet/cell_serializer.rb
parent6eb2fc56d3ab658edc1477d138b1cf0b3021ab29 (diff)
parent72d6411b9365df0bccbe1ac43f793fc7d7ab369f (diff)
downloadcaxlsx-df919fffb9ccef3eb343f7aaf70206da8f3c8073.tar.gz
caxlsx-df919fffb9ccef3eb343f7aaf70206da8f3c8073.zip
Merge branch 'master' into chore/use-delete-prefix-suffix
Diffstat (limited to 'lib/axlsx/workbook/worksheet/cell_serializer.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/cell_serializer.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell_serializer.rb b/lib/axlsx/workbook/worksheet/cell_serializer.rb
index 9d39add3..f45d3c73 100644
--- a/lib/axlsx/workbook/worksheet/cell_serializer.rb
+++ b/lib/axlsx/workbook/worksheet/cell_serializer.rb
@@ -10,7 +10,9 @@ module Axlsx
# @param [String] str The string to apend serialization to.
# @return [String]
def to_xml_string(row_index, column_index, cell, str = +'')
- str << '<c r="' << Axlsx::cell_r(column_index, row_index) << '" s="' << cell.style.to_s << '" '
+ str << '<c r="'
+ str << Axlsx::col_ref(column_index) << Axlsx::row_ref(row_index)
+ str << '" s="' << cell.style.to_s << '" '
return str << '/>' if cell.value.nil?
method = cell.type