From 75f7fc5f0a5f98f7f534f3d649c26f97376fa7dd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 7 Feb 2014 15:59:22 +0530 Subject: [PATCH] Edit book: Fix typo that caused error popup while creating a new tag --- src/calibre/gui2/tweak_book/editor/smart/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/smart/html.py b/src/calibre/gui2/tweak_book/editor/smart/html.py index 13a390e4b0..3aaba469ed 100644 --- a/src/calibre/gui2/tweak_book/editor/smart/html.py +++ b/src/calibre/gui2/tweak_book/editor/smart/html.py @@ -90,7 +90,7 @@ def find_closing_tag(tag, max_tags=sys.maxint): if block is None or not tag_start.is_start: break endblock, tag_end = next_tag_boundary(block, tag_start.offset) - if block is None or tag_end.is_start: + if endblock is None or tag_end.is_start: break if tag_start.closing: try: