comic page fixes

This commit is contained in:
Bastian Kleineidam 2013-01-29 18:45:59 +01:00
parent 6d04809658
commit b91603e2a9

View file

@ -215,7 +215,7 @@ def get_html_index(testinfo):
if entry["error"]: if entry["error"]:
title = entry["error"] title = entry["error"]
elif entry["description"]: elif entry["description"]:
title = entry["description"] title = entry["description"][:100]
else: else:
title = entry["name"] title = entry["name"]
args = { args = {
@ -262,8 +262,8 @@ def write_html_comic(key, entry, outputdir, date):
def quote(arg): def quote(arg):
"""CGI-escape argument.""" """CGI-escape and jinja-escape the argument."""
return cgi.escape(arg, quote=True) return cgi.escape(arg.replace('{', '').replace('}', ''), quote=True)
def main(args): def main(args):