From ce85f02e86800eb548b7008b7efc30d388cd2827 Mon Sep 17 00:00:00 2001 From: Maksimov V Vladimir Date: Sun, 28 Dec 2025 19:18:38 +0300 Subject: [PATCH] width count fix --- image_table.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/image_table.go b/image_table.go index a5adb9b..e31fe54 100644 --- a/image_table.go +++ b/image_table.go @@ -54,6 +54,15 @@ func toString(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) switch val.Kind() {