Skip to content

Commit 43a8a18

Browse files
committed
t.formatSectionHeader(): new method
1 parent 683ad0d commit 43a8a18

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sizes/output.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (s *section) Emit(t *table, buf io.Writer, indent int) {
119119
// own header, but prints the table header:
120120
fmt.Fprint(buf, t.generateHeader())
121121
} else {
122-
t.formatRow(buf, indent, s.name, "", "", "", "")
122+
t.formatSectionHeader(buf, indent, s.name)
123123
}
124124

125125
fmt.Fprint(buf, linesBuf.String())
@@ -425,6 +425,10 @@ func (t *table) emitBlankRow(buf io.Writer) {
425425
t.formatRow(buf, 0, "", "", "", "", "")
426426
}
427427

428+
func (t *table) formatSectionHeader(buf io.Writer, indent int, name string) {
429+
t.formatRow(buf, indent, name, "", "", "", "")
430+
}
431+
428432
func (t *table) formatRow(
429433
buf io.Writer, indent int,
430434
name, citation, valueString, unitString, levelOfConcern string,

0 commit comments

Comments
 (0)