From f8544e39113b76a0438a29f69ef20d462b2e929a Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 11 Feb 2025 10:39:53 +0000 Subject: [PATCH] Update new_post.py --- scripts/new_post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/new_post.py b/scripts/new_post.py index be5bf97..cbf2f46 100755 --- a/scripts/new_post.py +++ b/scripts/new_post.py @@ -48,6 +48,7 @@ if Path(assets_dir).exists() \ git_branch = questionary.text("Branch: ", default=f"post/{id_from_title}").ask() +newline = "\n" draft = f"""--- title: {answers['title']} layout: post @@ -60,7 +61,7 @@ social_image: /{assets_dir}/thumbnail.png alt: image_class: invertable -{'\n'.join(f'{k}: true' for k in answers['libraries'])} +{newline.join(f'{k}: true' for k in answers['libraries'])} --- """