fixfile(): Discussions-To: can contain an address or a url. Adjust

the text accordingly.
This commit is contained in:
Barry Warsaw 2001-03-21 18:59:03 +00:00
parent 9daec1404d
commit 11272e5033
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ def fixfile(infile, outfile):
mailtos.append(
'<a href="mailto:%s?subject=PEP%%20%s">%s</a>' %
(addr, pep, addr))
elif addr.startswith('http:'):
mailtos.append(
'<a href="%s">%s</a>' % (addr, addr))
else:
mailtos.append(addr)
v = ' '.join(mailtos)