mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
PPRINT, markdown-aligned, and XTAB writers measured column widths with utf8.RuneCountInString, which counts codepoints rather than terminal display columns. East-Asian fullwidth characters (counted as 1 but displayed as 2) and zero-width combining marks (counted as 1 but displayed as 0) both caused misalignment. Add lib.DisplayWidth wrapping uniseg.StringWidth, and use it from the three writers. The XTAB right-aligned path also drops fmt.Sprintf with %*s since Go's %*s pads by rune count too. UTF8Strlen is unchanged so DSL strlen semantics are preserved. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auxents | ||
| bifs | ||
| cli | ||
| climain | ||
| colorizer | ||
| dkvpx | ||
| dsl | ||
| entrypoint | ||
| go-csv | ||
| input | ||
| lib | ||
| mlrval | ||
| output | ||
| parsing | ||
| pbnjay-strptime | ||
| platform | ||
| runtime | ||
| scan | ||
| stream | ||
| terminals | ||
| transformers | ||
| types | ||
| version | ||
| README.md | ||
Please see ../../README-dev.md for an overview; please see each subdirectory for details about it.