This commit is contained in:
Bastian Kleineidam 2012-12-19 06:59:46 +01:00
parent 0fca95b5b2
commit 389ae838b8

View file

@ -93,10 +93,12 @@ def get_content(filename):
if len(name) > 40:
name = name[:37] + "..."
if url:
inner = '<a href="%s" title="%s" class="%s">%s</a>' % quote_all(url, reason, css, name)
args = quote_all(url, reason, css, name)
inner = '<a href="%s" title="%s" class="%s">%s</a>' % args
else:
inner = '<span title="%s" class="%s">%s</span>' % quote_all(reason, css, name)
res.append(' <div class="item">%s</div>' % inner)
args = quote_all(reason, css, name)
inner = '<span title="%s" class="%s">%s</span>' % args
res.append('<div class="item">%s</div>' % inner)
return os.linesep.join(res)