mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 05:34:11 +01:00
nmweb: Fix spacing around punctuation in headers
This commit is contained in:
parent
3db892f43b
commit
32bef33565
2 changed files with 3 additions and 3 deletions
|
@ -125,7 +125,7 @@ def mailto_addrs(msg,header_name):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
frm = email.utils.getaddresses([hdr])
|
frm = email.utils.getaddresses([hdr])
|
||||||
return ','.join(['<a href="mailto:%s">%s</a> ' % ((l, p) if p else (l, l)) for (p, l) in frm])
|
return ', '.join(['<a href="mailto:%s">%s</a>' % ((l, p) if p else (l, l)) for (p, l) in frm])
|
||||||
env.globals['mailto_addrs'] = mailto_addrs
|
env.globals['mailto_addrs'] = mailto_addrs
|
||||||
|
|
||||||
def link_msg(msg):
|
def link_msg(msg):
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
{% set headers = ['Subject', 'Date'] %}
|
{% set headers = ['Subject', 'Date'] %}
|
||||||
{% set addr_headers = ['To', 'Cc', 'From'] %}
|
{% set addr_headers = ['To', 'Cc', 'From'] %}
|
||||||
{% for header in headers: %}
|
{% for header in headers: %}
|
||||||
<p><b>{{header}}:</b>{{m.header(header)|e}}</p>
|
<p><b>{{header}}:</b> {{m.header(header)|e}}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for header in addr_headers: %}
|
{% for header in addr_headers: %}
|
||||||
<p><b>{{header}}:</b>{{mailto_addrs(m,header)|safe}}</p>
|
<p><b>{{header}}:</b> {{mailto_addrs(m,header)|safe}}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<hr>
|
<hr>
|
||||||
{% for part in format_message(m,mid): %}{{ part|safe }}{% endfor %}
|
{% for part in format_message(m,mid): %}{{ part|safe }}{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue