[SSG] Strip spaces in values in file headers.

This commit is contained in:
Ceda EI 2020-02-05 05:02:51 +05:30
parent 11ede38d1b
commit 802acb5cc1
1 changed files with 2 additions and 2 deletions

View File

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