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

Extraneous space in 2.6.2 when the close-paren starts a line #34

Closed
anomiex opened this issue Aug 29, 2022 · 1 comment
Closed

Extraneous space in 2.6.2 when the close-paren starts a line #34

anomiex opened this issue Aug 29, 2022 · 1 comment
Labels

Comments

@anomiex
Copy link

anomiex commented Aug 29, 2022

wp-prettier 2.6.2

# Options (if any):
--paren-spacing

Input:

const foo = (
    'Something long enough that prettier wraps the parens' ? 'and has to be' : 'an expression so it keeps them'
).bar();

Output:

const foo = (
  "Something long enough that prettier wraps the parens"
    ? "and has to be"
    : "an expression so it keeps them"
 ).bar();

Note the space at the start of the last line.

Expected behavior:

const foo = (
  "Something long enough that prettier wraps the parens"
    ? "and has to be"
    : "an expression so it keeps them"
).bar();
@jsnajdr
Copy link
Member

jsnajdr commented Mar 22, 2023

Fixed in [email protected], thanks for reporting!

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

No branches or pull requests

2 participants