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

Remove space after pipe name #14961

Merged
merged 4 commits into from
Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions changelog_unreleased/angular/14961.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#### Remove space after pipe name (#13100 by @waterplea)

<!-- prettier-ignore -->
```html
<!-- Input -->
<my-component
[value]="value | transform: arg1 : arg2 | format: arg3 : arg4"
></my-component>

<!-- Prettier stable -->
<my-component
[value]="value | transform : arg1 : arg2 | format : arg3 : arg4"
></my-component>

<!-- Prettier main -->
<my-component
[value]="value | transform : arg1 : arg2 | format : arg3 : arg4"
></my-component>
```
2 changes: 1 addition & 1 deletion src/language-js/print/binaryish.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function printBinaryishExpressions(
node.type === "NGPipeExpression" && node.arguments.length > 0
? group(
indent([
line,
softline,
": ",
join(
[line, ": "],
Expand Down