[Python] Python tabulate - when using icons result in misaligned table

Discussão em 'Python' iniciado por Stack, Janeiro 16, 2025.

  1. Stack

    Stack Membro Participativo

    When I use icons in tabulate, the printed table comes out misaligned.

    Sample:

    import tabulate
    print(tabulate.tabulate([{'head':'msg', 'head2': 'msg2'},{'head':'msg ', 'head2': 'msg2 '}], headers='keys', tablefmt="grid"))


    Results in:

    [​IMG]

    Is there any way to solve this?

    Continue reading...

Compartilhe esta Página