Skip to content

fix(texfmt): set tabsize to 1 if expandtab is true - #895

Merged
stevearc merged 1 commit into
stevearc:masterfrom
antinomie8:fix/tex-fmt-tabs-indent-width
Aug 11, 2026
Merged

fix(texfmt): set tabsize to 1 if expandtab is true#895
stevearc merged 1 commit into
stevearc:masterfrom
antinomie8:fix/tex-fmt-tabs-indent-width

Conversation

@antinomie8

Copy link
Copy Markdown
Contributor

When indenting with tabs, passing shiftwidth as --tabsize will result in this many tabs being used for indentation, instead of a single tab. So if a tab is configured to be rendered as 4 spaces, then each line will be 4 times as much indented as it should.

@github-actions
github-actions Bot requested a review from stevearc August 10, 2026 16:33
@stevearc

Copy link
Copy Markdown
Owner

LGTM thanks!

@stevearc
stevearc merged commit e1e05e1 into stevearc:master Aug 11, 2026
7 checks passed
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.

2 participants