'ls' is currently the only 'ftp' subcommand that outputs a trailing
newline before the prompt is re-displayed. This is cause by the use of
"print" to output a string that already contains an ending newline.
For a matter of consistency of output, make 'ls' output without that
extra trailing newline.
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
L.append(node_name(name, sub))
else:
L.append(node_name(path, n))
- print columnate(L, '')
+ sys.stdout.write(columnate(L, ''))
def write_to_file(inf, outf):