mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Merge branch 'check.py_format_string' of https://github.com/siebenschlaefer/calibre
This commit is contained in:
commit
96a6558749
@ -195,10 +195,12 @@ class Check(QSplitter):
|
|||||||
activate = '<div>%s</div>' % ('<br>'.join(activate))
|
activate = '<div>%s</div>' % ('<br>'.join(activate))
|
||||||
if many:
|
if many:
|
||||||
activate += '<br>'
|
activate += '<br>'
|
||||||
|
activate = activate.replace('%', '%%')
|
||||||
template = header + ((msg + activate) if many else (activate + msg)) + footer
|
template = header + ((msg + activate) if many else (activate + msg)) + footer
|
||||||
else:
|
else:
|
||||||
activate = '<div><a href="activate:item" title="%s">%s %s</a></div>' % (
|
activate = '<div><a href="activate:item" title="%s">%s %s</a></div>' % (
|
||||||
open_tt, err.name, loc)
|
open_tt, err.name, loc)
|
||||||
|
activate = activate.replace('%', '%%')
|
||||||
template = header + activate + msg + footer
|
template = header + activate + msg + footer
|
||||||
self.help.setText(
|
self.help.setText(
|
||||||
template % (err.HELP, ifix, fix_tt, fix_msg, run_tt, run_msg))
|
template % (err.HELP, ifix, fix_tt, fix_msg, run_tt, run_msg))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user