Skip to content

[Bug] Format Document: Problem with On Error Resume Next #42

@DecimalTurn

Description

@DecimalTurn

Describe the bug
It seems that On Error Resume Next is causing the indentation to collapse

To Reproduce
Steps to reproduce the behavior:

  1. Use the snippet below
  2. 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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions