gpg: Avoid extra LF in notaion data listing.
authorWerner Koch <wk@gnupg.org>
Mon, 15 Dec 2014 08:47:21 +0000 (09:47 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 15 Dec 2014 08:47:21 +0000 (09:47 +0100)
* g10/keylist.c (show_notation): Use log_printf.

g10/keylist.c

index 75def77..0255f00 100644 (file)
@@ -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);
            }
        }