]> arthur.barton.de Git - bup.git/commit
cmd/newliner: avoid printing a blank line if the final output ended in \r.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 16 Feb 2011 23:55:24 +0000 (15:55 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 16 Feb 2011 23:56:34 +0000 (15:56 -0800)
commitf36b287401a4e2848ffb01c414d10aea854688e8
treec56a69c1c34a3ab07113eabd3177fb04bfd54c93
parent24f57e206ef41a97d23781bc85a712d1c00dcbf6
cmd/newliner: avoid printing a blank line if the final output ended in \r.

If the last output was a progress message, we would blank out the line
(which was correct) but then we'd print a newline, which was wrong.  Only
print the leftover output, followed by a newline, if the last output was
nonempty.

'bup midx' suffered from this.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/newliner-cmd.py