'This method is called at the end of an anchor region.
The default implementation adds a textual footnote marker using an
index into the list of hyperlinks created by the anchor_bgn()method.'

def anchor_end(self):

    if self.anchor:
        self.handle_data(('[%d]' % len(self.anchorlist)))
        self.anchor = None
    return
