Skip to content

Reindents the file before applying conversion from spaces to tabs. #55

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

Closed
wants to merge 1 commit into from
Closed

Conversation

stanfieldr
Copy link

@stanfieldr stanfieldr commented Oct 16, 2017

This fixes issue #51 too

This fixes an issue where some of my PHP files with 4 space indentation were converting to 2 tabs for every 4 spaces. My editor uses 2 spaces to represent a tab, so it should really convert to 1 tab for every 4 spaces.

Work in progress...

prevents a situation where an uneven level of indentation occurs after
conversion. For example, going from 4 spaces to tabs with your editor
using 2 spaces for every tab results in the conversion of 2 tabs for
every 4 spaces. Because the original file had 4 spaces, it should first
be normalized into the users preferred indentation level (2 spaces)
before converting to tabs so that you're left with 1 tab for every 4
spaces.
@stanfieldr stanfieldr changed the title Reindents the file before applying conversion from spaces to tabs. This Reindents the file before applying conversion from spaces to tabs. Oct 16, 2017
@stanfieldr stanfieldr closed this Oct 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants