width count fix
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user