diff --git a/weboob/applications/pastoob/pastoob.py b/weboob/applications/pastoob/pastoob.py index 269c4d73..106a6978 100644 --- a/weboob/applications/pastoob/pastoob.py +++ b/weboob/applications/pastoob/pastoob.py @@ -62,6 +62,10 @@ class Pastoob(ReplApplication): return 3 output = sys.stdout output.write(paste.contents) + # add a newline unless we are writing + # in a file or in a pipe + if os.isatty(output.fileno()): + output.write('\n') def do_post(self, filename): """