summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/cell_serializer.rb
diff options
context:
space:
mode:
authorJurriaan Pruis <[email protected]>2014-03-05 18:23:20 +0100
committerJurriaan Pruis <[email protected]>2014-03-05 18:23:20 +0100
commit85512559e72e886de3cac15345655f37a633945e (patch)
tree70417b59a72b3c00b425a5cf90947902d704fe65 /lib/axlsx/workbook/worksheet/cell_serializer.rb
parente98a148ddd741001a2ec952712135b233ee51491 (diff)
downloadcaxlsx-85512559e72e886de3cac15345655f37a633945e.tar.gz
caxlsx-85512559e72e886de3cac15345655f37a633945e.zip
Small fixes
Diffstat (limited to 'lib/axlsx/workbook/worksheet/cell_serializer.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/cell_serializer.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell_serializer.rb b/lib/axlsx/workbook/worksheet/cell_serializer.rb
index 81ae11de..73b7c110 100644
--- a/lib/axlsx/workbook/worksheet/cell_serializer.rb
+++ b/lib/axlsx/workbook/worksheet/cell_serializer.rb
@@ -3,8 +3,6 @@ module Axlsx
# The Cell Serializer class contains the logic for serializing cells based on their type.
class CellSerializer
class << self
-
-
# Calls the proper serialization method based on type.
# @param [Integer] row_index The index of the cell's row
# @param [Integer] column_index The index of the cell's column
@@ -18,7 +16,6 @@ module Axlsx
str << '</c>'
end
-
# builds an xml text run based on this cells attributes.
# @param [String] str The string instance this run will be concated to.
# @return [String]
@@ -44,7 +41,6 @@ module Axlsx
value_serialization 'd', cell.value, str
end
-
# serializes cells that are type date
# @param [Cell] cell The cell that is being serialized
# @param [String] str The string the serialized content will be appended to.
@@ -85,7 +81,6 @@ module Axlsx
numeric cell, str
end
-
# Serializes cells that are type formula
# @param [Cell] cell The cell that is being serialized
# @param [String] str The string the serialized content will be appended to.
@@ -130,6 +125,10 @@ module Axlsx
end
end
+ # Serializes cells that are of the type richtext
+ # @param [Cell] cell The cell that is being serialized
+ # @param [String] str The string the serialized content will be appended to.
+ # @return [String]
def richtext(cell, str)
if cell.ssti.nil?
inline_string_serialization cell, str