class RubyXL::CellValue

www.schemacentral.com/sc/ooxml/e-ssml_v-1.html

Public Instance Methods

before_write_xml() click to toggle source
# File lib/rubyXL/objects/sheet_data.rb, line 15
def before_write_xml
  self.xml_space = (value.is_a?(String) && ((value =~ /\A\s/) || (value =~ /\s\Z/) || value.include?("\n"))) ? 'preserve' : nil
  true
end