Skip to content

Conversation

kunli2
Copy link
Contributor

@kunli2 kunli2 commented Mar 27, 2023

This PR is to fix not aligned indentations cases.
Before the change, it converts the tab to whitespaces by multiple the tab count to TabsAndIndentsStyle. getTabSize().
This PR changed to determine the replacement of tab/space from autoDetect TabsAndIndentsStyle.
If the style is using tabs, then replace all tabs with tabSize spaces, otherwise, keep them unchanged.

an example under-indenting case, after this change, the prefix tabs will keep unchanged.
image (2)

This PR integrated the latest rewrite version as well (UseType changes).

@sambsnyd sambsnyd merged commit f9ce01f into main Mar 31, 2023
@sambsnyd sambsnyd deleted the kunli/returnTab branch March 31, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants