dart-lang / dart_style

An opinionated formatter/linter for Dart code
https://pub.dev/packages/dart_style
BSD 3-Clause "New" or "Revised" License
645 stars 117 forks source link

Preserve a blank line after a leading top-level comment. #1481

Closed munificent closed 3 months ago

munificent commented 3 months ago

Preserving blank lines between comments and code was mostly working correctly except for one edge case: A blank line between the first comment at the top level of a file and the subsequent code would get discarded. This fixes that.

Fix #1415.