abap-cleaner icon indicating copy to clipboard operation
abap-cleaner copied to clipboard

IF / ELSEIF alignment of the statements

Open VladGhitulescu opened this issue 1 year ago • 1 comments

Hey,

I've got a slight inconsistency in the alignment of the statements in an IF/ELSEIF statement:

CleanShot 2024-01-19 at 16 27 07

Please take a look at the alignment of the line 402 above - especially when compared with the lines 396 or 426.

Wouldn't be better if there would be 2 more spaces between ELSEIF and ( in the line 402 (just like in the lines 396 or 426)?

Thanks!

Regards, Vlad

VladGhitulescu avatar Jan 19 '24 15:01 VladGhitulescu

Hi Vlad,

hm, yes, I do see your point. Will look into it, but this might be a bit tricky!

In general, "Align logical expressions" only aligns several 'branches' of the logical expression as long as they have the same structure (which is the case for the opening parentheses in line 426 and 427, but not for the opening parenthesis in line 402 versus the structure identifier in line 403). But you could indeed argue, that this difference comes up only after the AND operator!

Kind regards, Jörg-Michael

jmgrassau avatar Feb 09 '24 13:02 jmgrassau