Skip to content

Dart formatter removes significant whitespace in expressions (WONTFIX) #530

Closed
@Hixie

Description

@Hixie

This expression from Flutter's physics library is flattened by the formatter, which harms readability and would make the code much harder to understand and debug:

    return      power * (_c2 * _w * cosine - _c1 * _w * sine) +
           _r * power * (_c2 *      sine   + _c1 *      cosine);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions