Skip to content

Google Docs incorrectly displays table with "Table Grid" style #898

@kajojify

Description

@kajojify

Hello guys! Thanks for the nice package.

OS: Ubuntu 18.04
Package version: python_docx-0.8.10

Steps to reproduce:

  1. Take the example script from https://python-docx.readthedocs.io/en/latest .

  2. Get rid of document.add_picture('monty-truth.png', width=Inches(1.25)) line and add
    table.style = "Table Grid" right under table = document.add_table(rows=1, cols=3).
    Run the script to produce demo.docx.

  3. Open your Google Drive and upload demo.docx.

  4. Google drive thumbnail is ok:
    image

  5. But then open the file using Google Docs and see some weird table style set by Google Drive:
    image

In the meanwhile, if I open demo.docx in LibreOffice, everything is displayed ok.
What is wrong with the style? Or maybe this is some bug on Google Docs side?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions