mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-20 19:25:21 +01:00
...
This commit is contained in:
parent
4cf26dd397
commit
8add032da1
1 changed files with 5 additions and 2 deletions
|
|
@ -144,8 +144,11 @@ def loc_to_string(line, col):
|
|||
for i, (name, lnum, col) in enumerate(err.all_locations):
|
||||
activate.append('<a href="activate:item:%d" title="%s">%s %s</a>' % (
|
||||
i, open_tt, name, loc_to_string(lnum, col)))
|
||||
activate = '<div>%s</div><br>' % ('<br>'.join(activate))
|
||||
template = header + msg + activate + footer
|
||||
many = len(activate) > 2
|
||||
activate = '<div>%s</div>' % ('<br>'.join(activate))
|
||||
if many:
|
||||
activate += '<br>'
|
||||
template = header + ((msg + activate) if many else (activate + msg)) + footer
|
||||
else:
|
||||
activate = '<div><a href="activate:item" title="%s">%s %s</a></div>' % (
|
||||
open_tt, err.name, loc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue