abrookins/WrapToColumn

Extra spaces added even when lines include trailing space

Closed this issue · 2 comments

Given the following (where indicates a space):

The⋅quick⋅brown⋅fox⋅
jumps⋅over⋅the⋅lazy⋅
dog

I'd expect:

The⋅quick⋅brown⋅fox⋅jumps⋅over⋅the⋅lazy⋅dog

But I get:

The⋅quick⋅brown⋅fox⋅⋅jumps⋅over⋅the⋅lazy⋅⋅dog

Ideally, one might even collapse extra end-of-line space, so that:

The⋅quick⋅brown⋅fox⋅⋅⋅⋅⋅⋅⋅
jumps⋅over⋅the⋅lazy⋅⋅⋅⋅⋅⋅
dog
           ↓

The⋅quick⋅brown⋅fox⋅jumps⋅over⋅the⋅lazy⋅dog

instead of

The⋅quick⋅brown⋅fox⋅⋅⋅⋅⋅⋅⋅⋅jumps⋅over⋅the⋅lazy⋅⋅⋅⋅⋅⋅⋅dog

but I'd settle for not adding extra.

Yuck, that's terrible. Thank you for reporting. I'm planning a push to work
on this plugin soon, and I'll check this out then.

On Fri, Sep 4, 2015 at 3:35 PM, David Moles notifications@github.com
wrote:

Given the following (where ⋅ indicates a space):

The⋅quick⋅brown⋅fox⋅
jumps⋅over⋅the⋅lazy⋅
dog

I'd expect:

The⋅quick⋅brown⋅fox⋅jumps⋅over⋅the⋅lazy⋅dog

But I get:

The⋅quick⋅brown⋅fox⋅⋅jumps⋅over⋅the⋅lazy⋅⋅dog

Ideally, one might even collapse extra end-of-line space, so that:

The⋅quick⋅brown⋅fox⋅⋅⋅⋅⋅⋅⋅
jumps⋅over⋅the⋅lazy⋅⋅⋅⋅⋅⋅
dog

The⋅quick⋅brown⋅fox⋅jumps⋅over⋅the⋅lazy⋅dog

instead of

The⋅quick⋅brown⋅fox⋅⋅⋅⋅⋅⋅⋅⋅jumps⋅over⋅the⋅lazy⋅⋅⋅⋅⋅⋅⋅dog

but I'd settle for not adding extra.


Reply to this email directly or view it on GitHub
#10.

Thanks!