This commit is contained in:
Kovid Goyal 2007-06-15 17:25:13 +00:00
parent 4abdc096af
commit a082131823
2 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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: