Skip to content

Commit a7160d6

Browse files
authored
Support the 'Sponsor' header field (#911)
1 parent c3e468c commit a7160d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pep2html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def fixfile(inpath, input_lines, outfile):
219219
print('</td></tr></table>', file=outfile)
220220
print('<div class="header">\n<table border="0">', file=outfile)
221221
for k, v in header:
222-
if k.lower() in ('author', 'bdfl-delegate', 'discussions-to'):
222+
if k.lower() in ('author', 'bdfl-delegate', 'discussions-to', 'sponsor'):
223223
mailtos = []
224224
for part in re.split(r',\s*', v):
225225
if '@' in part:
@@ -401,7 +401,7 @@ def apply(self):
401401
# empty
402402
continue
403403
para = body[0]
404-
if name in ('author', 'bdfl-delegate'):
404+
if name in ('author', 'bdfl-delegate', 'sponsor'):
405405
for node in para:
406406
if isinstance(node, nodes.reference):
407407
node.replace_self(peps.mask_email(node))

0 commit comments

Comments
 (0)