Topic pages: remove authors table (#2823)

This table is not too useful, and for some reason we're not properly
mangling email addresses in the table. For simplicity, just omit the
table.
This commit is contained in:
Jelle Zijlstra 2022-10-06 17:36:15 -07:00 committed by GitHub
parent e447c5476a
commit 520cc0bbe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 14 deletions

View File

@ -189,20 +189,21 @@ class PEPZeroWriter:
self.emit_newline() self.emit_newline()
# PEP owners if is_pep0:
authors_dict = _verify_email_addresses(peps) # PEP owners
max_name_len = max(len(author_name) for author_name in authors_dict) authors_dict = _verify_email_addresses(peps)
self.emit_title("Authors/Owners") max_name_len = max(len(author_name) for author_name in authors_dict)
self.emit_author_table_separator(max_name_len) self.emit_title("Authors/Owners")
self.emit_text(f"{'Name':{max_name_len}} Email Address") self.emit_author_table_separator(max_name_len)
self.emit_author_table_separator(max_name_len) self.emit_text(f"{'Name':{max_name_len}} Email Address")
for author_name in _sort_authors(authors_dict): self.emit_author_table_separator(max_name_len)
# Use the email from authors_dict instead of the one from "author" as for author_name in _sort_authors(authors_dict):
# the author instance may have an empty email. # Use the email from authors_dict instead of the one from "author" as
self.emit_text(f"{author_name:{max_name_len}} {authors_dict[author_name]}") # the author instance may have an empty email.
self.emit_author_table_separator(max_name_len) self.emit_text(f"{author_name:{max_name_len}} {authors_dict[author_name]}")
self.emit_newline() self.emit_author_table_separator(max_name_len)
self.emit_newline() self.emit_newline()
self.emit_newline()
pep0_string = "\n".join([str(s) for s in self.output]) pep0_string = "\n".join([str(s) for s in self.output])
return pep0_string return pep0_string