Merge branch 'news-support' of /home/vilmibm/tildetown-scripts

This commit is contained in:
nathaniel smith 2016-09-05 20:00:49 +00:00
commit bffa76628a

View File

@ -150,7 +150,7 @@ def parse_news(news_path):
elif in_meta: elif in_meta:
key, value = line.split(':', 1) key, value = line.split(':', 1)
current_entry[key] = value.rstrip().lstrip() current_entry[key] = value.rstrip().lstrip()
if set(current_entry.keys()) == set(metadata_keys): if set(metadata_keys).issubset(current_entry.keys()):
in_content = True in_content = True
in_meta = False in_meta = False
elif in_content: elif in_content: