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
As indicated, when using "brace_style": "collapse-preserve-inline" in .jsbeautifyrc, simple, single-line statements don't seem to always be preserved. At least one such case is when the 'simple' statement is a return: for a function definition such as
function foo(arg) {
if (!arg) { return false; }
// ...
return true;
}
I get (after beautifying)
function foo(arg) {
if (!arg) {
return false; }
// ...
return true;
}
whereas I would have expected no change in the input.
Needless to say, I am using the latest version of js-beautify.
The text was updated successfully, but these errors were encountered:
Hi guys,
As indicated, when using
"brace_style": "collapse-preserve-inline"
in.jsbeautifyrc
, simple, single-line statements don't seem to always be preserved. At least one such case is when the 'simple' statement is areturn
: for a function definition such asI get (after beautifying)
whereas I would have expected no change in the input.
Needless to say, I am using the latest version of js-beautify.
The text was updated successfully, but these errors were encountered: