From 406d857c61fb128a48281a52899ddf77b68201be Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 28 Feb 2019 18:32:39 +0100 Subject: threejs splash page on the index --- megapixels/app/site/parser.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'megapixels/app/site') diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py index c17d3b8a..ad4256ad 100644 --- a/megapixels/app/site/parser.py +++ b/megapixels/app/site/parser.py @@ -198,6 +198,8 @@ def format_metadata(section): """ meta = [] for line in section.split('\n'): + if ': ' not in line: + continue key, value = line[2:].split(': ', 1) meta.append("
{}
{}
".format(key, value)) return "
{}
".format(''.join(meta)) -- cgit v1.2.3-70-g09d2