diff --git a/src/calibre/gui2/tweak_book/editor/text.py b/src/calibre/gui2/tweak_book/editor/text.py index c1e61c6fd2..cffba04683 100644 --- a/src/calibre/gui2/tweak_book/editor/text.py +++ b/src/calibre/gui2/tweak_book/editor/text.py @@ -693,10 +693,11 @@ class TextEdit(PlainTextEdit): href = prepare_string_for_xml(href, True) if fullpage: template = '''\ +
\ \ \ -'''.format('xMidYMid meet' if preserve_aspect_ratio else 'none') +
'''.format('xMidYMid meet' if preserve_aspect_ratio else 'none') else: alt = _('Image') template = '{0}'.format(alt)