Skip to content

Commit

Permalink
Merge branch 'check.py_format_string' of https://github.com/siebensch…
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 14, 2018
2 parents 8785619 + f0a925c commit 96a6558
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/calibre/gui2/tweak_book/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 96a6558

Please sign in to comment.