lib/axlsx/stylesheet/cell_alignment.rb in axlsx-2.0.1 vs lib/axlsx/stylesheet/cell_alignment.rb in axlsx-2.1.0.pre
- old
+ new
@@ -123,12 +123,10 @@
# Serializes the object
# @param [String] str
# @return [String]
def to_xml_string(str = '')
- str << '<alignment '
- serialized_attributes str
- str << '/>'
+ serialized_tag('alignment', str)
end
end
end