We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59b6862 commit 25e9166Copy full SHA for 25e9166
lib/importmap/commands.rb
@@ -121,14 +121,13 @@ def puts_table(array)
121
row.each_with_index.map{ |iterand, index| [lengths[index] || 0, iterand.to_s.length].max }
122
end
123
124
- puts head = "+" + (column_sizes.map { |s| "-" * (s + 2) }.join('+')) + '+'
+ divider = "|" + (column_sizes.map { |s| "-" * (s + 2) }.join('|')) + '|'
125
array.each_with_index do |row, row_number|
126
row = row.fill(nil, row.size..(column_sizes.size - 1))
127
row = row.each_with_index.map { |v, i| v.to_s + " " * (column_sizes[i] - v.to_s.length) }
128
puts "| " + row.join(" | ") + " |"
129
- puts head if row_number == 0
+ puts divider if row_number == 0
130
131
- puts head
132
133
134
0 commit comments