Skip to content

[2.9.7] Regression splitting a simple line with comment #922

@boris-petrov

Description

@boris-petrov

Prettier-Java 2.9.7

Playground link

--print-width 40

Input:

var metadata = a
  // a
  .get();

Output:

var metadata =
  a
    // a
    .get();

Expected behavior:

var metadata = a
  // a
  .get();

Because Prettier for JS does this

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