Skip to content

Commit

Permalink
Show we're bailing out early.
Browse files Browse the repository at this point in the history
  • Loading branch information
aptinio committed Feb 3, 2015
1 parent 011619c commit 40f8e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/text-table/table.rb
Expand Up @@ -201,7 +201,8 @@ def align_column(column_number, alignment)
row[row.index(cell)] = hashify(cell, {:align => alignment_block}) if cell and not(cell.is_a?(Hash) && cell[:colspan].to_i > 0)
end
rows.each do |row|
set_alignment.call(row, column_number, alignment) unless row == :separator
next if row == :separator
set_alignment.call(row, column_number, alignment)
end
set_alignment.call(foot, column_number, alignment) if foot
return self
Expand Down

0 comments on commit 40f8e5b

Please sign in to comment.