From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Notmuch Mail <notmuch@notmuchmail.org>
Subject: [PATCH 03/11] nmweb: (pylint) use spaces instead of tabs
Date: Sun, 4 Feb 2018 23:19:51 -0500 [thread overview]
Message-ID: <20180205041959.22066-4-dkg@fifthhorseman.net> (raw)
In-Reply-To: <20180205041959.22066-1-dkg@fifthhorseman.net>
---
contrib/notmuch-web/nmweb.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/contrib/notmuch-web/nmweb.py b/contrib/notmuch-web/nmweb.py
index 1f6e0145..b56c6b12 100755
--- a/contrib/notmuch-web/nmweb.py
+++ b/contrib/notmuch-web/nmweb.py
@@ -47,7 +47,7 @@ class index:
tags = db.get_all_tags()
return template.render(tags=tags,
title="Notmuch webmail",
- prefix=prefix,
+ prefix=prefix,
sprefix=webprefix)
class search:
@@ -80,7 +80,7 @@ class search:
ts=ts,
title=terms,
prefix=prefix,
- sprefix=webprefix)
+ sprefix=webprefix)
def format_time_range(start,end):
if end-start < (60*60*24):
@@ -137,7 +137,7 @@ class show:
mid=mid,
title=m.get_header('Subject'),
prefix=prefix,
- sprefix=webprefix)
+ sprefix=webprefix)
def format_message(fn,mid):
msg = MaildirMessage(open(fn))
@@ -184,9 +184,9 @@ def format_message_walk(msg,mid):
decoded = decodeAnyway(unb64,part.get_content_charset('ascii'))
cid_refd += find_cids(decoded)
part.set_payload(replace_cids(decoded,mid).encode(part.get_content_charset('ascii')))
- (filename,cid) = link_to_cached_file(part,mid,counter)
- counter +=1
- yield '<iframe class="embedded-html" src="%s">' % os.path.join(prefix,cachedir,mid,filename)
+ (filename,cid) = link_to_cached_file(part,mid,counter)
+ counter +=1
+ yield '<iframe class="embedded-html" src="%s">' % os.path.join(prefix,cachedir,mid,filename)
yield '</div>'
else:
yield '<div id="%s">' % (part.get_content_type().replace('/','-'),)
--
2.15.1
next prev parent reply other threads:[~2018-02-05 4:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 4:19 clean up for nmweb/btsmail Daniel Kahn Gillmor
2018-02-05 4:19 ` [PATCH 01/11] nmweb: (pylint) use __future__.absolute_import Daniel Kahn Gillmor
2018-02-05 4:19 ` [PATCH 02/11] nmweb: (pylint) use replace() function directly on string object Daniel Kahn Gillmor
2018-02-05 4:19 ` Daniel Kahn Gillmor [this message]
2018-02-05 4:19 ` [PATCH 04/11] nmweb: (pylint) normalize whitespace Daniel Kahn Gillmor
2018-03-17 12:37 ` David Bremner
2018-02-05 4:19 ` [PATCH 05/11] nmweb: (pylint) import built-in modules before third-party modules Daniel Kahn Gillmor
2018-02-05 4:19 ` [PATCH 06/11] nmweb: (pylint) put if clause on separate line from predicate Daniel Kahn Gillmor
2018-02-05 4:19 ` [PATCH 07/11] nmweb: shim for launching from gunicorn Daniel Kahn Gillmor
2018-02-05 4:19 ` [PATCH 08/11] nmweb: use urllib.quote_plus() as plain quote_plus() Daniel Kahn Gillmor
2018-02-05 4:19 ` [PATCH 09/11] nmweb: explicitly move to python3 Daniel Kahn Gillmor
2018-02-05 4:19 ` [PATCH 10/11] nmweb: hide numeric date fields' Daniel Kahn Gillmor
2018-02-05 4:19 ` [PATCH 11/11] nmweb: handle non-numeric timestamp inputs Daniel Kahn Gillmor
2018-03-17 12:57 ` David Bremner
2018-03-24 23:05 ` clean up for nmweb/btsmail David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180205041959.22066-4-dkg@fifthhorseman.net \
--to=dkg@fifthhorseman.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).