From faa3efd1360ef662d858eea4f9e30f31e402c587 Mon Sep 17 00:00:00 2001
From: Eric Vyncke <eric@vyncke.org>
Date: Thu, 21 Mar 2024 08:09:47 +0900
Subject: [PATCH] fix: Missing button text for PostScript (#7200)

* ci: Update build-base-app.yml workflow

* Do not list PS in build_file_urls

* Update ietf/doc/utils.py

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
---
 ietf/doc/utils.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ietf/doc/utils.py b/ietf/doc/utils.py
index ad1c2af22..4872f41fc 100644
--- a/ietf/doc/utils.py
+++ b/ietf/doc/utils.py
@@ -1062,6 +1062,8 @@ def build_file_urls(doc: Union[Document, DocHistory]):
         base = settings.IETF_ID_ARCHIVE_URL
         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 + "-" + doc.rev + "." + t))