This commit is contained in:
Kovid Goyal 2011-04-12 18:54:06 -06:00
parent 40d01c5aea
commit 5e75259355

View File

@ -310,7 +310,7 @@ class Serializer(object):
if href not in id_offsets: if href not in id_offsets:
self.logger.warn('Hyperlink target %r not found' % href) self.logger.warn('Hyperlink target %r not found' % href)
href, _ = urldefrag(href) href, _ = urldefrag(href)
else: if href in self.id_offsets:
ioff = self.id_offsets[href] ioff = self.id_offsets[href]
for hoff in hoffs: for hoff in hoffs:
buffer.seek(hoff) buffer.seek(hoff)