Skip to content

[2.9.2] Regression with method chaining #888

@boris-petrov

Description

@boris-petrov

Prettier-Java 2.9.2

Playground link

# Options (if any):
--print-width 30

Input:

api.a(
  b,
  c,
  null,
  d
).blockingForEach();

Output:

api.a(
	b,
	c,
	null,
	d
).blockingForEach();

Expected behavior:

api
  .a(b, c, null, d)
  .blockingForEach();

Prettier for JS does the correct thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions