From 5d3415dcfb52232a7d012548495f5168f1d83096 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Jan 2016 12:51:06 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/editor/text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)