mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
887d6b4cb6
commit
7de0514d30
@ -871,8 +871,7 @@ class TextEdit(PlainTextEdit):
|
||||
'color': ('<span style="color: %s">' % color, '</span>'),
|
||||
'background-color': ('<span style="background-color: %s">' % color, '</span>'),
|
||||
}[formatting]
|
||||
if hasattr(self.smarts, 'surround_with_custom_tag'):
|
||||
self.smarts.surround_with_custom_tag(self, prefix, suffix)
|
||||
self.smarts.surround_with_custom_tag(self, prefix, suffix)
|
||||
|
||||
def insert_image(self, href, fullpage=False, preserve_aspect_ratio=False, width=-1, height=-1):
|
||||
if width <= 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user