Security Provider Enforcer on Page Breaks when Formatting Page in ASP .NET

Wappler Version : 4.9.1
Operating System : W10
Server Model: ASP .NET
Database Type: MSSQL

Expected behavior

Formatting an ASPX file should not break the security enforcer on page.

Actual behavior

Due to formatting being applied on the security enforcer, if converts to something like:

How to reproduce

Add Security Provider Enforcer on an ASPX page and then format it.
The button on App component also shows that there is no enforcer applied when clicked again.
This also causes all the code below to have a huge indent on left.

This has been so since Monaco editor was integrated. But don’t use ASP much, and could not find any other post about it… so posting it now.