Remove trailing whitespaces when using --with-nth

This commit is contained in:
Junegunn Choi committed 2019-11-12 23:20:09 +09:00
1 parent 05b5f3f845
commit 751aa1944a
2 files changed
+6

No files matched your search

+1
View File
@@ -126,6 +126,7 @@ func Run(opts *Options, revision string) {
return false
}
item.text, item.colors = ansiProcessor([]byte(transformed))
item.text.TrimTrailingWhitespaces()
item.text.Index = itemIndex
item.origText = &data
itemIndex++