From a8d7c5d03a819ef99c43ae031add97234a060ee4 Mon Sep 17 00:00:00 2001 From: Aemiii91 <44569252+Aemiii91@users.noreply.github.com> Date: Sat, 18 May 2024 08:51:22 +0200 Subject: [PATCH] Improve line-breaking in pagination --- .github/generate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/generate.py b/.github/generate.py index b82dc878..d9ceee5e 100644 --- a/.github/generate.py +++ b/.github/generate.py @@ -141,7 +141,7 @@ def generate_pagination(current_page: int, num_pages: int) -> str: buffer += """---\n\n
\n\n""" if current_page > 0: - buffer += f"[◀ PREV PAGE]({format_page_filename(current_page - 1)}) | " + buffer += f"[◀ PREV PAGE]({format_page_filename(current_page - 1)}) | " for page in range(num_pages): if page == current_page: @@ -149,10 +149,10 @@ def generate_pagination(current_page: int, num_pages: int) -> str: else: buffer += f"[{page + 1:02}]({format_page_filename(page)})" if page < num_pages - 1: - buffer += " " + buffer += " " if current_page < num_pages - 1: - buffer += f" | [NEXT PAGE ▶]({format_page_filename(current_page + 1)})" + buffer += f" | [NEXT PAGE ▶]({format_page_filename(current_page + 1)})" buffer += """ |