Skip to content

Empty lines between AnnotatedNode and documentationComment should get removed #1792

@FMorschel

Description

@FMorschel

What input code did you provide to the formatter?

class MyClass {
  /// Some docs

  int foo = 4;
}

What output did the formatter produce?

No change.

class MyClass {
  /// Some docs

  int foo = 4;
}

What output did you expect or want the formatter to produce?

class MyClass {
  /// Some docs
  int foo = 4;
}

It does remove the empty line if instead of the doc comment we have an annotation so I expected the same behaviour.

Thanks, @munificent!

Metadata

Metadata

Assignees

No one assigned

    Labels

    styleRequest to change the formatter's output style

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions