'Find duplicate footnotes and format and add the duplicates.'

def handle_duplicates(self, parent):

    for li in list(parent):
        count = self.get_num_duplicates(li)
        if (count > 1):
            self.add_duplicates(li, count)
