Skip to content
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

Multi-line statements #374

Closed
johvik opened this issue Dec 29, 2013 · 1 comment · Fixed by #442
Closed

Multi-line statements #374

johvik opened this issue Dec 29, 2013 · 1 comment · Fixed by #442

Comments

@johvik
Copy link

johvik commented Dec 29, 2013

If you run this on http://jsbeautifier.org/

if (true ||
  true);

if (true ||
  !true);

var a = true ||
  true;

var b = true ||
  !true;

It produces:

if (true ||
  true);

if (true || !true);

var a = true ||
  true;

var b = true || !true;

It should produce the same formatting when using operators at the start of the line in the expressions as it does without the operators. My example only shows '!' but the same thing is happening with '+', '-' etc.

@bitwiseman
Copy link
Member

Thanks for the clear repro. This should be an easy fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants