Reformat bug for nested conditionals, gif attached

in SQL Prompt
I think this short video demonstrates the issue fairly comprehensively:
https://gfycat.com/flusteredbruisedcommongonolek
https://gfycat.com/flusteredbruisedcommongonolek