diff --git a/src/calibre/ebooks/pdf/html_writer.py b/src/calibre/ebooks/pdf/html_writer.py index 89f27b4fed..a1c6901466 100644 --- a/src/calibre/ebooks/pdf/html_writer.py +++ b/src/calibre/ebooks/pdf/html_writer.py @@ -455,7 +455,6 @@ def add_anchors_markup(root, uuid, anchors): # rescale the viewport a.tail = '\n' div.append(a) - a.count = 0 for anchor in anchors: a(anchor) a(uuid)