Project

General

Profile

Bug #161

Reindent a nested case get indented wrong

Added by Wil van Antwerpen 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
07/12/2019
Due date:
% Done:

0%


Description

Reported by Jose in forum thread:
https://support.dataaccess.com/Forums/showthread.php?64609-DFRefactor-20190426-Reindent-function-mess-up-my-file

I have seen the following:

Procedure MyProcedure
    Case Begin
        Case (1 = 1)
            Case Begin
                Case (2 = 2)
                    If (3 = 3) Begin
                        Showln "test"
                    End
                    Case Break
            Case End
        Case Break
    Case End
End_Procedure

Is refactored to:
~~~
Procedure MyProcedure
Case Begin
Case (1 = 1)
Case Begin
Case (2 = 2)
If (3 = 3) Begin
Showln "test"
End
Case Break
Case End
Case Break
Case End
End_Procedure
~~~

thread-64609.zip (237 Bytes) Wil van Antwerpen, 07/12/2019 02:05 PM

History

#1 Updated by Wil van Antwerpen 3 months ago

As I cannot edit the report.

This was the result:

Is refactored to:

Procedure MyProcedure
    Case Begin
        Case (1 = 1)
        Case Begin
            Case (2 = 2)
                    If (3 = 3) Begin
                                Showln "test"
                                            End
                                                                            Case Break
        Case End
                                                                        Case Break
    Case End
End_Procedure

Also available in: Atom PDF