From 6dfadc5e343c0651e5a44e02f4c3bb1ad81f7f29 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Fri, 19 Jan 2024 16:49:38 +0300 Subject: [PATCH] [fmtutil/table] Improved borders and separators rendering --- CHANGELOG.md | 4 ++++ ek.go | 2 +- fmtutil/table/table.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e1cfe74..6dc75134 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Changelog +### 12.96.2 + +* `[fmtutil/table]` Improved borders and separators rendering + ### 12.96.1 * `[terminal/tty]` Fixed bug in checking for TTY when stdin is a character device diff --git a/ek.go b/ek.go index d9b59016..f9548fa7 100644 --- a/ek.go +++ b/ek.go @@ -20,7 +20,7 @@ import ( // ////////////////////////////////////////////////////////////////////////////////// // // VERSION is current ek package version -const VERSION = "12.96.1" +const VERSION = "12.96.2" // ////////////////////////////////////////////////////////////////////////////////// // diff --git a/fmtutil/table/table.go b/fmtutil/table/table.go index 1c48b559..b8d4de22 100644 --- a/fmtutil/table/table.go +++ b/fmtutil/table/table.go @@ -561,7 +561,7 @@ func getSeparatorSize(t *Table) int { size += columnSize } - return size + (len(t.columnSizes) * 3) - 1 + return size + (len(t.columnSizes) * 3) - 2 } // getTableWidth returns maximum width of table