From: Jakub Wilk Date: Tue, 11 Oct 2022 08:19:44 +0000 (+0200) Subject: nmweb: Fix spacing around punctuation in headers X-Git-Tag: 0.38_rc0~68 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=32bef335658763b5e9d887db3ac22bb3c1b76d9e nmweb: Fix spacing around punctuation in headers --- diff --git a/devel/notmuch-web/nmweb.py b/devel/notmuch-web/nmweb.py index 7b555c62..b0d4d5cd 100755 --- a/devel/notmuch-web/nmweb.py +++ b/devel/notmuch-web/nmweb.py @@ -125,7 +125,7 @@ def mailto_addrs(msg,header_name): return '' frm = email.utils.getaddresses([hdr]) - return ','.join(['%s ' % ((l, p) if p else (l, l)) for (p, l) in frm]) + return ', '.join(['%s' % ((l, p) if p else (l, l)) for (p, l) in frm]) env.globals['mailto_addrs'] = mailto_addrs def link_msg(msg): diff --git a/devel/notmuch-web/templates/show.html b/devel/notmuch-web/templates/show.html index 98d36acc..690f5464 100644 --- a/devel/notmuch-web/templates/show.html +++ b/devel/notmuch-web/templates/show.html @@ -3,10 +3,10 @@ {% set headers = ['Subject', 'Date'] %} {% set addr_headers = ['To', 'Cc', 'From'] %} {% for header in headers: %} -

{{header}}:{{m.header(header)|e}}

+

{{header}}: {{m.header(header)|e}}

{% endfor %} {% for header in addr_headers: %} -

{{header}}:{{mailto_addrs(m,header)|safe}}

+

{{header}}: {{mailto_addrs(m,header)|safe}}

{% endfor %}
{% for part in format_message(m,mid): %}{{ part|safe }}{% endfor %}