lewang / ws-butler

Unobtrusively trim extraneous white-space *ONLY* in lines edited.
242 stars 26 forks source link

Don't trim whitespace on empty lines #3

Closed PythonNut closed 10 years ago

PythonNut commented 10 years ago

I to keep block contiguous using whitespace -pythonnut_010 Is there any way I can tell ws-butler to leave these lines be?

Thanks, PythonNut

lewang commented 10 years ago

Isn't this a bug with whatever package you used to draw the vertical line? Deleting these spaces is kind of the point of ws-butler.

PythonNut commented 10 years ago

The vertical lines are drawn with indent-vline.el. It does not affect ws-butler. I do want to trim trailing whitespace, but I also want the whitespace in nested bocks to be contiguous. It helps me because it helps me visually group statements.

Sorry, this is a rather esoteric enhancement request.

lewang commented 10 years ago

If I understand your problem correctly, it's still a problem of visualization. The spaces don't have to be there, but whatever is allowing you to visualize spaces has to draw them in for contiguous blocks.