You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using angular templating (with indent_handlebars) and trying to format a .html file which has <style> tags with media query inside them, or <script> tags with a decorator, the code is not being formatted correctly.
@bitwiseman I see that in VSCode, an option will be added to specifically turn on angular templating. With this in mind, I suggest we remove the indent_handlebars condition for the control flow formatting, so the control flow tokens will always be indented if the angular templating option is set. It was added to prevent formatting conflicts, but by disabling angular templating by default, and adding an option to enable it manually (in VSCode), keeping indent_handlebars condition for control flow tokens is kind of obsolete. It was a little bit weird to include it in the first place (my mistake).
I started fixing this issue, I just have to write some tests meanwhile, I am waiting for your reply and then if you'd like me to, I can create a PR.
Description
When using angular templating (with indent_handlebars) and trying to format a .html file which has <style> tags with media query inside them, or <script> tags with a decorator, the code is not being formatted correctly.
Input
Expected Output
Actual Output
Steps to Reproduce
This can be reproduced by opening Beautifier IO, check if version is v1.15.1. The
Additional Settings (JSON)
should look like the following:Environment
Settings
The text was updated successfully, but these errors were encountered: