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
Formatting bug or incorrect formatting with stylua@v0.18.1.
stylua@v0.18.1
:w !~/stylua -s -c --verify - Diff in stdin: 1 |- if tabnr ~= finaltab then 2 |- 3 |- stack:push '%T' 4 |- end 1 |+if tabnr ~= finaltab then 2 |+ stack:push '%T' end shell returned 1
stylua -s -c --verify -
Note
Using --verify doesn't appear to change anything, but removing -s makes the bug disappear.
--verify
-s
if tabnr ~= finaltab then stack:push '%T' end
If this^ is then formatted again (or rather, in-turn) it becomes:
column_width = 78 line_endings = "Unix" indent_type = "Spaces" indent_width = 4 quote_style = "AutoPreferSingle" call_parentheses = "None" collapse_simple_statement = "Always"
The text was updated successfully, but these errors were encountered:
It seems that the issue persists even if all the tabs in the original are replaced with spaces (e.g. 4 spaces each) before formatting.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Formatting bug or incorrect formatting with
stylua@v0.18.1
.Diff
Formatted Using
Note
Using
--verify
doesn't appear to change anything, but removing-s
makes the bug disappear.Original (this was taken out of a larger file):
Formatted
If this^ is then formatted again (or rather, in-turn) it becomes:
Config
The text was updated successfully, but these errors were encountered: