diff --git a/lib/text-table/table.rb b/lib/text-table/table.rb index 1851896..a208a3a 100644 --- a/lib/text-table/table.rb +++ b/lib/text-table/table.rb @@ -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