This commit is contained in:
Kovid Goyal 2022-12-12 19:58:45 +05:30
parent 887d6b4cb6
commit 7de0514d30
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -871,7 +871,6 @@ 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)
def insert_image(self, href, fullpage=False, preserve_aspect_ratio=False, width=-1, height=-1):