You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: