From c7373fee281e4dad6b7e22b334c659aae48ac2d1 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Tue, 3 Apr 2018 08:49:34 -0400 Subject: [PATCH] Improve output alignment. --- platform-independent/cli-c/cli/mpw-cli.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform-independent/cli-c/cli/mpw-cli.c b/platform-independent/cli-c/cli/mpw-cli.c index 9dbc0961..673bf8ca 100644 --- a/platform-independent/cli-c/cli/mpw-cli.c +++ b/platform-independent/cli-c/cli/mpw-cli.c @@ -695,7 +695,9 @@ void cli_mpw(Arguments *args, Operation *operation) { if (!operation->site) abort(); - inf( "%s's %s for %s:\n[ %s ]: ", operation->user->fullName, operation->purposeResult, operation->site->name, operation->identicon ); + if (mpw_verbosity >= inf_level) + fprintf( stderr, "%s's %s for %s:\n[ %s ]: ", + operation->user->fullName, operation->purposeResult, operation->site->name, operation->identicon ); // Determine master key. MPMasterKey masterKey = mpw_masterKey( @@ -755,6 +757,7 @@ void cli_mpw(Arguments *args, Operation *operation) { cli_free( args, operation ); exit( EX_SOFTWARE ); } + fflush( NULL ); fprintf( stdout, "%s\n", result ); if (operation->site->url) inf( "See: %s", operation->site->url );