Commit 2438804e authored by Nick Mathewson's avatar Nick Mathewson 🏃
Browse files

r17240@catbus: nickm | 2007-12-18 16:58:29 -0500

 Identify the bridges in HTML by an id tag, and in email by indenting them.


svn:r12861
parent 1f8c2b4c
...@@ -21,7 +21,9 @@ import bridgedb.Dist ...@@ -21,7 +21,9 @@ import bridgedb.Dist
HTML_MESSAGE_TEMPLATE = """ HTML_MESSAGE_TEMPLATE = """
<html><body> <html><body>
<p>Here are your bridge relays: <p>Here are your bridge relays:
<pre>%s</pre> <pre id="bridges">
%s
</pre>
</p> </p>
<p>Bridge relays (or "bridges" for short) are Tor relays that aren't listed <p>Bridge relays (or "bridges" for short) are Tor relays that aren't listed
in the main directory. Since there is no complete public list of them, in the main directory. Since there is no complete public list of them,
...@@ -162,7 +164,7 @@ def getMailResponse(lines, ctx): ...@@ -162,7 +164,7 @@ def getMailResponse(lines, ctx):
w.addheader("Date", twisted.mail.smtp.rfc822date()) w.addheader("Date", twisted.mail.smtp.rfc822date())
body = w.startbody("text/plain") body = w.startbody("text/plain")
answer = "".join("%s\n" % b.getConfigLine() for b in bridges) answer = "".join(" %s\n" % b.getConfigLine() for b in bridges)
body.write(EMAIL_MESSAGE_TEMPLATE % answer) body.write(EMAIL_MESSAGE_TEMPLATE % answer)
f.seek(0) f.seek(0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment