def autowidth
      return if is_formula? || value.nil?
      if contains_rich_text?
        string_width('', font_size) + value.autowidth
      elsif styles.cellXfs[style].alignment && styles.cellXfs[style].alignment.wrap_text
        max_width = 0
        value.to_s.split(/\r?\n/).each do |line|
          width = string_width(line, font_size)
          max_width = width if width > max_width
        end
        max_width
      else
        string_width(value, font_size)
      end
    end
def autowidth
      return if is_formula? || value.nil?
      if contains_rich_text?
        string_width('', font_size) + value.autowidth
      elsif styles.cellXfs[style].alignment && styles.cellXfs[style].alignment.wrap_text
        max_width = 0
        value.to_s.split(/\r?\n/).each do |line|
          width = string_width(line, font_size)
          max_width = width if width > max_width
        end
        max_width
      else
        string_width(value, font_size)
      end
    end
Attempts to determine the correct width for this cell's content
 @return [Float]