-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML format, no break after <label>? #1365
Comments
Is this bug solved? I got the same formatting problem! |
@gabrielhfgomes |
I was having this problem with the embedded version of beautify in VSCode, I solved it now by rolling back the extension to a 2 year behind version, the 1.0.2 and than the formatting worked perfectly as expected. Maybe it was some removed code from this older version... |
@gabrielhfgomes |
This line will cause tags like that However blocks like this are what set that flag: That is obviously not getting set in some key scenarios. Basically, we need to detect newlines when not inside an element tag. |
Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
js-beautify --html -r -s 2 -b collapse
Environment
OS: debian etch
js-beautify 1.7.5
The text was updated successfully, but these errors were encountered: