It seems, reading and writing from and to one and the same file is not implemented. It works fine for me, when using it from file A to file B, but not from file B to file B. A workaround might be to save the output (without blank lines) to a temporary file.
It could be a bug - or a feature
--
hatch