Pierre van Rooden wrote:

Simon Groenewolt wrote:

It correctly removes duplicate newlines, duplicate trailing whitespaces and 'inbetween' whitspace, but it doesn't remove remove leading whitespaces.


Yes, I recall it is to make the result 'human readable'.
Unforunately a spacereducer that removes leading spaces would require a separate class as you can't configure postprocessors.
I can add a "SpaceStripper" class that does this.

For me it's ok just to know that it is supposed to work like this. But a more 'aggressive' stripper would be a nice option.



It appends a space on every line in my case

I'm fixing that to convert all combos of \r and \n to a single \n. I'll leave the distinction between \n and space for readability.

That's a good idea.


Simon




Reply via email to