def pretty_print(linenum, todo):
    """ Prints a table with all the found todos """
    global COUNTER
    comm_endings = ['"""', "'''", '*/', '-->', '#}', '--}}', '}}', '%>']
    for i in comm_endings:
        if todo.endswith(i):
            todo = todo[:-len(i)]
    print('   line', linenum.rjust(4), '>>\t', todo)
    COUNTER += 1
