fix: Missing button text for PostScript in RFC (#7889)

Resolves #7879

Signed-off-by: Seonghyeon Cho <seonghyeoncho96@gmail.com>
This commit is contained in:
Seonghyeon Cho 2024-09-04 00:46:34 +09:00 committed by GitHub
parent 23e5307d2e
commit 061c89f3b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1046,6 +1046,8 @@ def build_file_urls(doc: Union[Document, DocHistory]):
file_urls = []
for t in found_types:
if t == "ps": # Postscript might have been submitted but should not be displayed in the list of URLs
continue
label = "plain text" if t == "txt" else t
file_urls.append((label, base + doc.name + "." + t))