Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When formatting a selection of latex, consider the leading spaces #4397

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

James-Yu
Copy link
Owner

This PR resolves #4394.

Previous formatting logic will do a text replacement after invoking latexindent or tex-fmt, without looking at the possible leading spaces/tabs before the selection.

This PR adds a preliminary logic to prepend spaces using the context.

@James-Yu James-Yu merged commit 460246f into master Sep 19, 2024
8 checks passed
@James-Yu James-Yu deleted the context-aware-latex-format branch September 19, 2024 07:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

format on save: modifications broken with latexindent
1 participant