mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #106
This commit is contained in:
parent
4abdc096af
commit
a082131823
@ -13,7 +13,7 @@
|
|||||||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
''' E-book management software'''
|
''' E-book management software'''
|
||||||
__version__ = "0.3.51"
|
__version__ = "0.3.52"
|
||||||
__docformat__ = "epytext"
|
__docformat__ = "epytext"
|
||||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||||
__appname__ = 'libprs500'
|
__appname__ = 'libprs500'
|
||||||
|
@ -643,8 +643,8 @@ class TableOfContents(object):
|
|||||||
|
|
||||||
|
|
||||||
def addTocEntry(self, tocLabel, textBlock):
|
def addTocEntry(self, tocLabel, textBlock):
|
||||||
if not isinstance(textBlock, (TextBlock, ImageBlock, RuledLine)):
|
if not isinstance(textBlock, (Canvas, TextBlock, ImageBlock, RuledLine)):
|
||||||
raise LrsError, "TOC destination must be a TextBlock, ImageBlock or RuledLine"+\
|
raise LrsError, "TOC destination must be a Canvas, TextBlock, ImageBlock or RuledLine"+\
|
||||||
" not a " + str(type(textBlock))
|
" not a " + str(type(textBlock))
|
||||||
|
|
||||||
if textBlock.parent is None:
|
if textBlock.parent is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user