(row []string)
| 59 | if rownum == 0 { |
| 60 | cellStyle = italic |
| 61 | } |
| 62 | if rownum > 0 && i == 0 { |
| 63 | cellStyle = bold |
| 64 | } |
| 65 | |
| 66 | pad := max(t.columnWidths[i]-runewidth.StringWidth(cell), 0) |
| 67 | fmt.Fprintf(t.w, "%s%s ", cellStyle.format(cell), strings.Repeat(" ", pad)) |
| 68 | } |
| 69 | fmt.Fprintln(t.w) |
| 70 | } |
| 71 | } |