wbailey / command_line_reporter

A gem for making it easy to produce a report while a ruby script is executing
Apache License 2.0
432 stars 23 forks source link

Separator issue #19

Open yoris opened 9 years ago

yoris commented 9 years ago

separator function doesn't return it correctly for me:

def separator(type = 'middle')
  left, center, right, bar = use_utf8? ? utf8_separator(type) : ascii_separator

  separator_str = left + self.rows[0].columns.map {|c| bar * (c.width + 2)}.join(center) + right
  separator_str.send(self.border_color) if self.border_color
end

But it works ok if i add to end of the function

     return separator_str string