aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-08-06 15:09:27 +0000
committerWerner Koch <[email protected]>2015-08-06 15:09:27 +0000
commit969542c8c2f48a60c1d68b7bf70b0c00374bacba (patch)
tree54a6361d2bac528f7a248e181502be7fc5d47985 /g10/mainproc.c
parentCurve25519 support. (diff)
downloadgnupg-969542c8c2f48a60c1d68b7bf70b0c00374bacba.tar.gz
gnupg-969542c8c2f48a60c1d68b7bf70b0c00374bacba.zip
gpg: Adjust UID line indentation for common key algos.
* g10/keylist.c (list_keyblock_print): Change UID line indentation * g10/mainproc.c (list_node): Ditto. -- Due to the new keyalgo/size format the UID was not anymore printed properly aligned to the creation date. Although we can't do that in any case, this change does it for common algos like "rsa2048", "dsa2048", and "ed25519". Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/mainproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index c90b9e333..f7b7c6b2c 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -1031,7 +1031,9 @@ list_node (CTX c, kbnode_t node)
es_printf ("%s:::::::::",
node->pkt->pkt.user_id->attrib_data?"uat":"uid");
else
- es_printf ("uid%*s", 28, "" );
+ es_printf ("uid%*s",
+ (int)keystrlen ()+(opt.legacy_list_mode? 9:11),
+ "" );
print_userid (node->pkt);
if (opt.with_colons)
es_putc (':', es_stdout);