We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Beautify Ruby handles a tab-size of 2 very well, but when this is added to the preferences:
"tab_size": 3
Or any other odd number, for that matter, the indentation is completely wrong. As an example:
def test if false test do puts "incorrectly indented" end end end
Becomes:
It doesn't indent each level at 3! It indents once at 4, then once at 2.
The text was updated successfully, but these errors were encountered:
The exact issue is in lib/line.rb:
def tab_string indent_character * (indent_size / @tab_size ) + (indent_size.odd? ? ' ' : '') end
As a temporary workaround, I'm changing that to
def tab_string indent_character * (indent_size / @tab_size ) # + (indent_size.odd? ? ' ' : '') end
Why would we even want the + (indent_size.odd? ? ' ' : '')?
+ (indent_size.odd? ? ' ' : '')
Sorry, something went wrong.
No branches or pull requests
Beautify Ruby handles a tab-size of 2 very well, but when this is added to the preferences:
Or any other odd number, for that matter, the indentation is completely wrong. As an example:
Becomes:
It doesn't indent each level at 3! It indents once at 4, then once at 2.
The text was updated successfully, but these errors were encountered: