'Create a unique anchor id for a href name'

def get_anchor(self, name):

    if (name not in self.anchors):
        self.anchors[name] = ('anchor%03d' % (len(self.anchors) + 1))
    return self.anchors.get(name)
