BalticAmadeus / AblFormatter

Code formatter for Progress OpenEdge (ABL)
Apache License 2.0
6 stars 0 forks source link

IfFormatter formattes incorrectly, then do location settings is set to New. #151

Closed SSaulenas closed 2 months ago

SSaulenas commented 2 months ago

Example, this:

        if something <> ? and something <> 0
        then
            oObject:method(something).
        else if something <> ? or something <> ?
        then
        do:    
            oObject:method(something).      
        end.
        else
            oObject:method().

Becomes:

        if something <> ? and something <> 0
        then
            oObject:method(something).
        else if something <> ? or something <> ?
        then
        do:    
            oObject:method(something).      
        end.

        else
            oObject:method().

Other settings do not make changes to this bug, just the do location: New.