Skip to content

Commit 683ad0d

Browse files
committed
table.formatRow(): take a citation, rather than footnote, as arg
1 parent 867c4dc commit 683ad0d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

sizes/output.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,8 @@ func (l *item) Emit(t *table, buf io.Writer, indent int) {
160160
}
161161
valueString, unitString := l.value.Human(l.prefixes, l.unit)
162162
t.formatRow(
163-
buf,
164-
indent,
165-
l.name, l.Footnote(t.nameStyle),
163+
buf, indent,
164+
l.name, t.footnotes.CreateCitation(l.Footnote(t.nameStyle)),
166165
valueString, unitString,
167166
levelOfConcern,
168167
)
@@ -428,13 +427,12 @@ func (t *table) emitBlankRow(buf io.Writer) {
428427

429428
func (t *table) formatRow(
430429
buf io.Writer, indent int,
431-
name, footnote, valueString, unitString, levelOfConcern string,
430+
name, citation, valueString, unitString, levelOfConcern string,
432431
) {
433432
prefix := ""
434433
if indent != 0 {
435434
prefix = spaces[:2*(indent-1)] + "* "
436435
}
437-
citation := t.footnotes.CreateCitation(footnote)
438436
spacer := ""
439437
l := len(prefix) + len(name) + len(citation)
440438
if l < 28 {

0 commit comments

Comments
 (0)