Describe the bug
It seems that On Error Resume Next is causing the indentation to collapse
To Reproduce
Steps to reproduce the behavior:
- Use the snippet below
- Run the Format Document command
Code (if relevant)
Attribute VB_Name = "Test"
Option Explicit
Function Demo()
On Error Resume Next
If Err.Number = 0 Then
Debug.Print "Hello"
End If
End Function
Expected behavior
The first level indentation should be preserved
Screenshots
