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}")