fix table bottom

This commit is contained in:
rmanach 2025-10-28 21:52:39 +01:00
parent 999e80ae2f
commit c7dc3d4402
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ func (s *Service) UnmarshalJSON(data []byte) error {
imageName = imageNameParts[0] imageName = imageNameParts[0]
} }
tag := "?" tag := "..."
if len(imageNameParts) > 1 { if len(imageNameParts) > 1 {
tag = imageNameParts[1] tag = imageNameParts[1]
} }

View File

@ -339,7 +339,7 @@ func (t *Table) Render() {
) )
} }
if idx+1 < len(t.rows) { if idx < len(t.rows) {
if t.rows[idx].next != nil { if t.rows[idx].next != nil {
table = append(table, strings.Join(lineParts, t.colSeparator)) table = append(table, strings.Join(lineParts, t.colSeparator))
} else { } else {