width count fix

This commit is contained in:
2025-12-28 19:18:38 +03:00
parent 0be8937fea
commit ce85f02e86

View File

@@ -54,6 +54,15 @@ func toString(v any) string {
} }
func rowToStrings(v any) []string { func rowToStrings(v any) []string {
if r, ok := v.(ITableRow); ok {
cells := r.GetCells()
out := make([]string, len(cells))
for i, c := range cells {
out[i] = toString(c)
}
return out
}
val := reflect.ValueOf(v) val := reflect.ValueOf(v)
switch val.Kind() { switch val.Kind() {