diff --git a/src/libprs500/ebooks/lrf/pylrs/pylrs.py b/src/libprs500/ebooks/lrf/pylrs/pylrs.py index f9848b91c6..24856fa0f1 100644 --- a/src/libprs500/ebooks/lrf/pylrs/pylrs.py +++ b/src/libprs500/ebooks/lrf/pylrs/pylrs.py @@ -664,8 +664,8 @@ class TableOfContents(object): raise LrsError, "TOC destination must be appended to a container with an objID" for tl in self.tocEntries: - if tl.label == tocLabel: - return + if tl.label == tocLabel and tl.textBlock == textBlock: + return self.tocEntries.append(TocLabel(tocLabel, textBlock)) textBlock.tocLabel = tocLabel