Skip to content

Commit

Permalink
Support the 'Sponsor' header field (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Mar 5, 2019
1 parent c3e468c commit a7160d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pep2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def fixfile(inpath, input_lines, outfile):
print('</td></tr></table>', file=outfile)
print('<div class="header">\n<table border="0">', file=outfile)
for k, v in header:
if k.lower() in ('author', 'bdfl-delegate', 'discussions-to'):
if k.lower() in ('author', 'bdfl-delegate', 'discussions-to', 'sponsor'):
mailtos = []
for part in re.split(r',\s*', v):
if '@' in part:
Expand Down Expand Up @@ -401,7 +401,7 @@ def apply(self):
# empty
continue
para = body[0]
if name in ('author', 'bdfl-delegate'):
if name in ('author', 'bdfl-delegate', 'sponsor'):
for node in para:
if isinstance(node, nodes.reference):
node.replace_self(peps.mask_email(node))
Expand Down

0 comments on commit a7160d6

Please sign in to comment.