We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a69326 commit 38b12a2Copy full SHA for 38b12a2
ui/table/interfaces.go
@@ -22,6 +22,7 @@ type Table struct {
22
HeaderFormatFunc func(string, ...interface{}) string
23
DataOnly bool
24
FillFirstColumn bool
25
+ DuplicateStr string
26
BackgroundStr string
27
BorderStr string
28
Transpose bool
ui/table/table.go
@@ -58,7 +58,11 @@ func (t Table) AsRows() [][]Value {
58
if lastVal == nil {
59
lastVal = r[0]
60
} else if lastVal.String() == r[0].String() {
61
- r[0] = ValueString{"~"}
+ if len(t.DuplicateStr) > 0 {
62
+ r[0] = ValueString{t.DuplicateStr}
63
+ } else {
64
+ r[0] = ValueString{"^"}
65
+ }
66
} else {
67
68
}
0 commit comments