Remove misleading total row from `--profile` table (#9039)
Merge pull request 9039
This commit is contained in:
parent
7c28eb5f7e
commit
6077ed6a01
|
@ -14,15 +14,12 @@ module Jekyll
|
||||||
|
|
||||||
rows = table_rows.dup
|
rows = table_rows.dup
|
||||||
header = rows.shift
|
header = rows.shift
|
||||||
footer = rows.pop
|
|
||||||
output = +"\n"
|
output = +"\n"
|
||||||
|
|
||||||
table = Terminal::Table.new do |t|
|
table = Terminal::Table.new do |t|
|
||||||
t << header
|
t << header
|
||||||
t << :separator
|
t << :separator
|
||||||
rows.each { |row| t << row }
|
rows.each { |row| t << row }
|
||||||
t << :separator
|
|
||||||
t << footer
|
|
||||||
t.style = TERMINAL_TABLE_STYLES
|
t.style = TERMINAL_TABLE_STYLES
|
||||||
t.align_column(0, :left)
|
t.align_column(0, :left)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue