Use right uid string.

Correct format :
        name (comment) <email>
Was :
        name <email> (comment)

3ac566fbf was wrong.
This commit is contained in:
SET
2020-11-18 20:40:16 +01:00
parent da3f5c3516
commit 98c4fa2b22

View File

@@ -323,9 +323,10 @@ const Error GpgMEWorker::ExportPublicKey(const char* pattern, string& buffer)
string GpgMEWorker::MakeUidString(const string& name, const string& email, const string& comment)
{
string uid = name + SPACE
+ LESSTHAN + email + MORETHAN;
string uid = name;
if (!comment.empty())
uid += SPACE + LEFT_PARENTHESIS + comment + RIGHT_PARENTHESIS;
uid += SPACE
+ LESSTHAN + email + MORETHAN;
return uid;
}