Repository navigation
Releases
Releases · jedib0t/go-pretty
v6.9.3
What's Changed
- table: update HTML spans when active color codes change by @yxshee in #463
- text: fix parsing of color changes, 24-bit colors and hyperlinks by @jedib0t in #466
- text: end two-byte escape sequences at their final byte by @simpleqt in #465
- text: escape sequence parsing fixes by @jedib0t in #467
- docs: fix the examples and READMEs that do not match the code by @jedib0t in #468
New Contributors
Full Changelog: v6.9.2...v6.9.3
v6.9.2
What's Changed
- table: optionally skip empty clipped continuation lines by @ViktorBystrov72 in #460
- table: fix paging of vertically merged cells with SkipEmptyRowsWhenCl… by @jedib0t in #461
New Contributors
- @ViktorBystrov72 made their first contribution in #460
Full Changelog: v6.9.1...v6.9.2
v6.9.1
What's Changed
- text: panic and other fixes by @jedib0t in #458
- text: format times before the epoch in the time transformers
- text: print a single sign for negative numbers in NewNumberTransformer
- text: wrap text that has cursor and erase sequences in it
- text: avoid a panic in AlignJustify with a negative length
- text: keep grapheme clusters whole in the wrap functions
- table: fix borders, alignment and column widths in edge cases by @jedib0t in #459
- table: draw the top border of a table that has only footers
- table: align headers and footers properly in a table without data rows
- table: size columns for the column IDs rendered with the auto-index
- table: size columns for multi-line content after it has been wrapped
Full Changelog: v6.9.0...v6.9.1
2026-11-20 [EDIT] Behavior change: alignment in tables without data rows
- table: headers and footers in a table without data rows are no longer
right-aligned by default. Every column used to be taken as numeric; now a
column is numeric only if its footers hold nothing but numbers. This changes
the default output of such tables:- Markdown: the separator goes from
---:to--- - HTML:
align="right"is dropped from the<th>/<td>tags - Text: headers and footers are left-aligned where the column is wider than
the content - To get the old alignment back, set
HeaderAlign,FooterAlignand
RowAligntotext.AlignRightinStyle().Format - Last release with the old behavior: v6.9.0. Changed in: v6.9.1 (#459).
- Markdown: the separator goes from
v6.9.0
What's Changed
- text: preserve hyperlink labels in StripEscape by @x0Lazarus in #422
- text: preserve separators in InsertEveryN by @jakezwang in #423
- text: InsertEveryN can now deal with graphmemes and newlines by @jedib0t in #424
- table: avoid panic when balancing merged column widths by @x0Lazarus in #427
- text: keep wrapped lines within wrapLen when a wide rune would overflow by @TheNetherWatcher in #435
- table: skip stacking vertically-merged rows that would misplace values by @nk-batman21 in #436
- progress: rewind the cursor over active trackers with RemoveOnCompletion by @akashchamp in #440
- progress: hold the lock while checking timeStart in Tracker.Start by @troclaux in #437
- progress: promote unit on rounding and handle negative values in FormatNumber by @TheNetherWatcher in #443
- table: preserve integer precision in numeric filters by @dailyun in #446
- Measure auto-index padding in display columns, not runes by @youdie006 in #425
- text: avoid a double minus when formatting MinInt64 by @vitalivo in #419
- text: trim snip indicators to the target width by @Don-Yin in #438
- text: apply the box drawing width override in StringWidth by @yu2971512385-ui in #429
- progress: trim to the terminal width when writing to stderr by @stepancheg in #449
- text: wrap hyperlink labels without changing their targets by @x0Lazarus in #428
- text: preserve fractional seconds in Unix time transformers by @vitalivo in #420
- text: end CSI sequences at their final byte, not only at "m" by @simpleqt in #447
- text: Trim and Snip no longer cut grapheme clusters in the middle by @troclaux in #431
- text: speed up Trim by segmenting into grapheme clusters only where needed by @jedib0t in #452
- text: skip escape code parsing when only measuring or trimming by @jedib0t in #453
- text: make RepeatAndTrim handle escape sequences and display width by @jedib0t in #454
- text: keep wrapped hyperlink labels within wrapLen when a wide rune w… by @jedib0t in #455
- text: cover unterminated escape sequences in the hyperlink wrapper by @jedib0t in #456
- progress: measure the terminal without changing the mode of the outpu… by @jedib0t in #457
New Contributors
- @x0Lazarus made their first contribution in #422
- @jakezwang made their first contribution in #423
- @TheNetherWatcher made their first contribution in #435
- @nk-batman21 made their first contribution in #436
- @akashchamp made their first contribution in #440
- @troclaux made their first contribution in #437
- @dailyun made their first contribution in #446
- @youdie006 made their first contribution in #425
- @vitalivo made their first contribution in #419
- @Don-Yin made their first contribution in #438
- @yu2971512385-ui made their first contribution in #429
- @stepancheg made their first contribution in #449
- @simpleqt made their first contribution in #447
Full Changelog: v6.8.3...v6.9.0
v6.8.3
v6.8.2
v6.8.1
What's Changed
A hardening pass across the table, list, progress, and text packages,
fixing security issues, crash/race bugs, and performance problems in the
render hot paths, with benchmarks added to back the optimizations.
Security
- table/list (HTML): escape the title, caption, and CSS class names in
RenderHTML()to prevent HTML/attribute injection. - table (CSV): make
RenderCSV()output RFC 4180 compliant, and add an
opt-inStyle().CSV.FieldProtectionoption that neutralizes spreadsheet
formula-injection fields (=,+,-,@, tab, CR). - text: sanitize hyperlink URLs and bound the escape-sequence parser
buffer so adversarial input can't grow it without limit.
Correctness
- progress: fix a render panic on tiny tracker lengths, data races on
tracker/indicator state, and a leakedtime.Tickerin the terminal-size
watcher. - table: guard auto-index rendering against empty
maxColumnLengths. - text: prevent a panic in
VAlign.Applyon negativemaxLines.
Performance
- table: compile regex filters once per render; pre-size render builders.
- list: hoist repeated width math out of the render loops.
- text: speed up
Align.ApplyandStringWidthWithoutEscSequences. - progress: build
PacManChompframes with astrings.Builder.
Tooling
- Moved root-level benchmarks into their packages and wired up
make bench;
added benchmarks for the table/text/list/progress render hot paths and tests
covering the retained-done-tracker render paths.
Full Changelog: v6.8.0...v6.8.1
v6.8.0
What's Changed
- progress: fix speed decay on done trackers and log overwrite; fixes #405 by @jedib0t in #406
- fix: wrap wide runes when wrapLen is odd in WrapHard by @koriyoshi2041 in #408
New Contributors
- @koriyoshi2041 made their first contribution in #408
Full Changelog: v6.7.10...v6.8.0
v6.7.10
What's Changed
- Fix panic on text align with unicode by @edznux-dd in #404
New Contributors
- @edznux-dd made their first contribution in #404
Full Changelog: v6.7.9...v6.7.10