The detail field truncation in human.rs only applied to TTY output, causing lines to exceed 80 columns when piping to cat or using --no-color. Fix: Apply truncation uniformly across all output modes: - TTY mode: Use actual terminal width from terminal_size crate - Non-TTY/--no-color: Assume 80 columns and truncate accordingly - Detail field max width: term_width - 38 columns Max line width now exactly 80 characters for all output modes. Acceptance criteria verified: - TTY colored table with summary ✓ - Non-TTY plain text, no ANSI ✓ - --json single JSON object ✓ - --json summary counts ✓ - --features list, exit 0 ✓ - --no-color plain text in TTY ✓ - 80-column terminal width ✓ - N/A excluded from human, in JSON ✓ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| pdftract-cli.cdx.json | ||