From f790f2113300a682842ea19d8f04bab2bcf8049c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Mar 2008 04:54:11 +0000 Subject: [PATCH] Remove sanity checking for Toc entries as it conflicts with page-break:avoid code --- src/libprs500/ebooks/lrf/pylrs/pylrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libprs500/ebooks/lrf/pylrs/pylrs.py b/src/libprs500/ebooks/lrf/pylrs/pylrs.py index 45b141d47a..173a5859a2 100644 --- a/src/libprs500/ebooks/lrf/pylrs/pylrs.py +++ b/src/libprs500/ebooks/lrf/pylrs/pylrs.py @@ -743,7 +743,7 @@ class TableOfContents(object): if textBlock.parent is None: raise LrsError, "TOC text block must be already appended to a page" - if textBlock.parent.parent is None: + if False and textBlock.parent.parent is None: raise LrsError, \ "TOC destination page must be already appended to a book"