Skip to content

Incorrect expectations for trailing whitespace #411

Open
@cmyr

Description

@cmyr

expanding on #409 (comment):

I have been misunderstanding the intention of the "trailing whitespace" metric. This should not be about counting any and all whitespace at the end of a line, but rather the range of trailing whitespace that is not relevant for layout. A good heuristic for this is "whitespace the absence of which would not change the drawing of a selection that spans multiple lines".

For our purposes, this should also always include the trailing newline.

I think it's probably worth getting this in for the next piet release, which should be quite imminent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions