Skip to content

fix: Correctly align arrow in ParseError display when input contains tabs#848

Open
j-g00da wants to merge 1 commit intowinnow-rs:mainfrom
j-g00da:fix/misaligned-arrow-in-error
Open

fix: Correctly align arrow in ParseError display when input contains tabs#848
j-g00da wants to merge 1 commit intowinnow-rs:mainfrom
j-g00da:fix/misaligned-arrow-in-error

Conversation

@j-g00da
Copy link

@j-g00da j-g00da commented Nov 26, 2025

Fixes issue with misaligned arrow in ParseError when the line from which the error originated contains tab characters.

Closes: #847

@j-g00da
Copy link
Author

j-g00da commented Nov 26, 2025

Note: this only fixes the issue with \t. Unicode characters treated as being the same width is a different issue.

@j-g00da j-g00da marked this pull request as draft November 26, 2025 12:03
…s tabs

Fixes issue with misaligned arrow in `ParseError` when
the line from which the error originated contains tab
characters.

Closes: winnow-rs#847
Signed-off-by: Jagoda Estera Ślązak <jslazak@jslazak.com>
@j-g00da j-g00da force-pushed the fix/misaligned-arrow-in-error branch from 0c486fd to 6d76d13 Compare November 26, 2025 12:19
@j-g00da j-g00da marked this pull request as ready for review November 26, 2025 12:20
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.

Tab characters causes error arrow to be displayed in wrong place

1 participant

Comments