From 802acb5cc1f5d79bb66845d69e198893913e2fd8 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Wed, 5 Feb 2020 05:02:51 +0530 Subject: [PATCH] [SSG] Strip spaces in values in file headers. --- nova.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova.py b/nova.py index 7ff7f01..ff54970 100755 --- a/nova.py +++ b/nova.py @@ -180,7 +180,7 @@ class Episode: def __init__(self, date, slug, title, show_notes, video_src, audio_src, config): self.date = date self.slug = slug - self.title = title.strip() + self.title = title self.show_notes = markdown.markdown(show_notes) self.video = video_src self.audio = audio_src @@ -237,7 +237,7 @@ def parse_file(file, array_keys=("tags")): config[match.group("key")] = [i.strip() for i in match.group("value").split(",")] else: - config[match.group("key")] = match.group("value") + config[match.group("key")] = match.group("value").strip() else: raise ParseError(f"Invalid line {line}")