mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
dcc9c29431
commit
10d96d43ea
@ -214,7 +214,7 @@ class EditorWidget(QWebView): # {{{
|
||||
if is_image:
|
||||
self.exec_command('insertHTML',
|
||||
'<img src="%s" alt="%s"></img>'%(prepare_string_for_xml(url, True),
|
||||
prepare_string_for_xml(name or '', True)))
|
||||
prepare_string_for_xml(name or _('Image'), True)))
|
||||
elif name:
|
||||
self.exec_command('insertHTML',
|
||||
'<a href="%s">%s</a>'%(prepare_string_for_xml(url, True),
|
||||
|
Loading…
x
Reference in New Issue
Block a user