aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-12-15 08:47:21 +0000
committerWerner Koch <[email protected]>2014-12-15 08:47:21 +0000
commitb4e402cb5c6d7fc507e8d5131969145b49640e50 (patch)
tree3e90454219ee4b6d5ab926d193e55395470c34f8
parentdoc: Typo fixes. (diff)
downloadgnupg-b4e402cb5c6d7fc507e8d5131969145b49640e50.tar.gz
gnupg-b4e402cb5c6d7fc507e8d5131969145b49640e50.zip
gpg: Avoid extra LF in notaion data listing.
* g10/keylist.c (show_notation): Use log_printf.
Diffstat (limited to '')
-rw-r--r--g10/keylist.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 75def775c..0255f00d8 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -393,7 +393,12 @@ show_notation (PKT_signature * sig, int indent, int mode, int which)
print_utf8_buffer (fp, nd->name, strlen (nd->name));
es_fprintf (fp, "=");
print_utf8_buffer (fp, nd->value, strlen (nd->value));
- es_fprintf (fp, "\n");
+ /* (We need to use log_printf so that the next call to a
+ log function does not insert an extra LF.) */
+ if (mode)
+ log_printf ("\n");
+ else
+ es_putc ('\n', fp);
}
}