timothee-haudebourg/source-span

Colored empty areas & trailing whitespace

Opened this issue · 1 comments

Selecting the cargo run --example=formatting output reveals two things:

  • source-span is unnecessarily coloring some empty areas
  • source-span is producing trailing whitespace

The former might confuse some users when selecting text and the latter is a hassle for ui-tests. So I think both of these should ideally be fixed.

screen

Trailing whitespaces could definitely be removed. Avoiding to color empty areas would add many control sequences, but I guess it would not be that much.