mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-26 02:45:31 +01:00
Merge branch 'check.py_format_string' of https://github.com/siebenschlaefer/calibre
This commit is contained in:
commit
96a6558749
1 changed files with 2 additions and 0 deletions
|
|
@ -195,10 +195,12 @@ def loc_to_string(line, col):
|
|||
activate = '<div>%s</div>' % ('<br>'.join(activate))
|
||||
if many:
|
||||
activate += '<br>'
|
||||
activate = activate.replace('%', '%%')
|
||||
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)
|
||||
activate = activate.replace('%', '%%')
|
||||
template = header + activate + msg + footer
|
||||
self.help.setText(
|
||||
template % (err.HELP, ifix, fix_tt, fix_msg, run_tt, run_msg))
|
||||
|
|
|
|||
Loading…
Reference in a new issue