Closed geminorum closed 8 years ago
Thanks for reporting this @geminorum. Let me take a look.
Are you referring to the spaces/tabs before the first character of the line or the spaces/tabs around the character that you are trying to align?
Are you referring to the spaces/tabs before the first character of the line or the spaces/tabs around the character that you are trying to align?
before the first character
I'm having trouble reproduce the bug. These are the test cases I have tried and please let me know if I miss your use case.
All of the above test cases kept the same indentation length and type when aligning.
I'm on Atom 1.4.0 with aligner 0.17.4.
Can you provide more information such as editor configuration, or video? Thanks.
@geminorum, are you still seeing this bug?
Still a problem on Atom 1.4.1 with aligner 0.18.0 / aligner-php 1.0.0
here I'm using NPP to demonstrate the bug:
Before: hence the arrows as hard tabs
After: the replaced dots as spaces (soft tabs)
I'm using Atom 1.4.1 with the latest aligner and aligner-php on OSX.
I created the file on Atom and double checked on Sublime Text 3. I wasn't able to reproduce the bug but I'll try it again on Windows.
Original file on Atom
Original file on Sublime
After aligning on Atom
After aligning on Sublime
I just tried this out on Windows with Atom 1.4.1 and the latest aligner and aligner-php.
This is using Atom and double checking with NPP. I wasn't able to reproduce the bug.
Before
After
Just tested with freshly installed Atom on Ubuntu, still the same problem. :)
I just reproduced the bug. The key was to hide invisibles. Thanks.
This should be fixed with v0.18.1. Please let me know if you are still seeing the bug after updating. Thanks for all your help and reporting this issue.
fixed on 0.18.1 thanks a lot.
not following the editor settings to use soft or hard tabs.
in my case aligner will convert all indent tabs into spaces