Merge branch 'news-support' of /home/vilmibm/tildetown-scripts
commit
bffa76628a
|
@ -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:
|
||||||
|
|
Reference in New Issue