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
Function parameters are merged into a single line when they start with ! (as in !1) or [ (as in [1,2,3]). See below. I experience this behavior in VSCode via the HookyQR.beautify extension while editing JavaScript, but it is reproducible via http://jsbeautifier.org/ as well, with any configuration selected.
Input
The code looked like this before beautification:
fn(
1,
!1,
1,
[1]
)
Expected Output
The code should have looked like this after beautification (same as Input):
fn(
1,
!1,
1,
[1]
)
Actual Output
The code actually looked like this after beautification:
Description
Function parameters are merged into a single line when they start with
!
(as in!1
) or[
(as in[1,2,3]
). See below. I experience this behavior in VSCode via the HookyQR.beautify extension while editing JavaScript, but it is reproducible via http://jsbeautifier.org/ as well, with any configuration selected.Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification (same as Input):
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Paste the Input into http://jsbeautifier.org/ and hit [CTRL][ENTER].
Environment
OS: Windows 10 (10.0.15063 Build 15063)
Settings
But the behavior is reproducible with any configuration on http://jsbeautifier.org that I tried.
The text was updated successfully, but these errors were encountered: