diff options
author | Yuri D'Elia <wavexx@thregr.org> | 2020-07-13 13:14:47 +0200 |
---|---|---|
committer | Yuri D'Elia <wavexx@thregr.org> | 2020-07-13 13:14:47 +0200 |
commit | 54d4307a2e065ed41f4ee786805e1830fce5e320 (patch) | |
tree | b20f0046e8c1f169630112e43fb594257829651e /termui | |
parent | f3304bdc1c215e733b9a2ee6a228e64f663c2b09 (diff) | |
download | git-bug-54d4307a2e065ed41f4ee786805e1830fce5e320.tar.gz |
Trim titles in list views
Diffstat (limited to 'termui')
-rw-r--r-- | termui/bug_table.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go index e57a2b15..c02570db 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -319,7 +319,7 @@ func (bt *bugTable) render(v *gocui.View, maxX int) { id := text.LeftPadMaxLine(excerpt.Id.Human(), columnWidths["id"], 1) status := text.LeftPadMaxLine(excerpt.Status.String(), columnWidths["status"], 1) labels := text.TruncateMax(labelsTxt.String(), minInt(columnWidths["title"]-2, 10)) - title := text.LeftPadMaxLine(excerpt.Title, columnWidths["title"]-text.Len(labels), 1) + title := text.LeftPadMaxLine(strings.TrimSpace(excerpt.Title), columnWidths["title"]-text.Len(labels), 1) author := text.LeftPadMaxLine(authorDisplayName, columnWidths["author"], 1) comments := text.LeftPadMaxLine(summaryTxt, columnWidths["comments"], 1) lastEdit := text.LeftPadMaxLine(humanize.Time(lastEditTime), columnWidths["lastEdit"], 1) |