Skip to content

Code indentation issue #248

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Falcon7EH opened this issue Feb 12, 2024 · 2 comments
Closed

Code indentation issue #248

Falcon7EH opened this issue Feb 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Falcon7EH
Copy link

The code indentation doesn't seem to work correctly for case statements,
if the WHEN block is defined a row below the "COND #(" part.
Every time the cleaner is carried out, the block moves 4 chars to the right,
which could lead to a syntax error, if the maximum number of allowed chars per rows are reached.

media_12 02 2024_10-47-37

Used cleaner settings:
recommended.zip

@jmgrassau jmgrassau added the bug Something isn't working label Feb 27, 2024
@jmgrassau jmgrassau self-assigned this Feb 27, 2024
@jmgrassau
Copy link
Member

Hi Falcon7EH,

ah, nice observation! This is caused by the "Indent lines" rule when there are two commands on the same line, and the second command spans multiple lines. Will be fixed with the next release!

Kind regards,
Jörg-Michael

@jmgrassau
Copy link
Member

Hi Falcon7EH,

thanks again for opening this issue! This bug should now be resolved with version 1.13.2, which was just released!

Kind regards,
Jörg-Michael

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants