From 5ba0ab94a5fda3eb83885bf33f552f296bb13669 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 18 Dec 2021 19:16:48 +0200 Subject: LinkInfo: Identity at end of first line --- src/ui/linkinfo.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/ui') diff --git a/src/ui/linkinfo.c b/src/ui/linkinfo.c index 72abea1a..38da84c7 100644 --- a/src/ui/linkinfo.c +++ b/src/ui/linkinfo.c @@ -78,13 +78,6 @@ iBool update_LinkInfo(iLinkInfo *d, const iGmDocument *doc, iGmLinkId linkId, in // int fg = linkColor_GmDocument(doc, linkId, textHover_GmLinkPart); iString str; init_String(&str); - /* Identity that will be used. */ - const iGmIdentity *ident = identityForUrl_GmCerts(certs_App(), url); - if (ident) { - appendFormat_String(&str, person_Icon " %s", - //escape_Color(tmBannerItemTitle_ColorId), - cstr_String(name_GmIdentity(ident))); - } /* Show scheme and host. */ if ((showHost || (flags & (imageFileExtension_GmLinkFlag | audioFileExtension_GmLinkFlag))) && scheme != mailto_GmLinkScheme) { @@ -133,6 +126,17 @@ iBool update_LinkInfo(iLinkInfo *d, const iGmDocument *doc, iGmLinkId linkId, in append_String(&str, dateStr); delete_String(dateStr); } + /* Identity that will be used. */ + const iGmIdentity *ident = identityForUrl_GmCerts(certs_App(), url); + if (ident) { + if (!isEmpty_String(&str)) { + appendCStr_String(&str, " \u2014 "); + } + appendFormat_String(&str, person_Icon " %s", + //escape_Color(tmBannerItemTitle_ColorId), + cstr_String(name_GmIdentity(ident))); + } + /* Show scheme and host. */ if (!isEmpty_String(&str)) { appendCStr_String(&str, "\n"); } -- cgit v1.2.3