From 61f679eb2d72143db28372e224ee2c7aca9b2814 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 30 Mar 2023 01:20:03 +0200 Subject: [PATCH] Strip trailing newlines from yaml-formatted title --- bin/download_galleries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/download_galleries.py b/bin/download_galleries.py index 167457f..9a2dfa2 100755 --- a/bin/download_galleries.py +++ b/bin/download_galleries.py @@ -58,7 +58,7 @@ def download_gallery(path): index = target / 'index.md' index.write_text(f'''--- slug: "{slug}" -title: {dump(title, Dumper=CDumper)} +title: {dump(title, Dumper=CDumper).rstrip()} date: {date} ---