Skip to content

pr: calculate tab stops from the input column after backspaces - #17068

Open
limadog9 wants to merge 1 commit into
uutils:mainfrom
limadog9:fix/pr-backspace-tab-stops
Open

limadog9 wants to merge 1 commit into
uutils:mainfrom
limadog9:fix/pr-backspace-tab-stops

Conversation

@limadog9

@limadog9 limadog9 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Track the input column so backspaces at the left margin are discarded and tabs after an overstrike expand to the correct stop.

All 12 affected GNU pr-tests.pl cases now pass. Output mismatches fell from 574 to 562 across 739 invocations, with no new failures. Linux integration tests: 118 passed, 1 ignored.

Follow-up to #10100. Part of #14705.

Track the input column independently of the bytes emitted. Drop backspaces at the left margin and retain those that overstrike earlier text. Use the same expansion rules when checking the output size.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant