Skip to content

Hyphen/Dashes are removed from tables #1094

Open
@mschaar

Description

@mschaar

I've got a problem with the dashes/hyphen in the docx tables.

In the table content all hyphens are removed.

Maybe it has something to do with this:
In the file table.py file is a comment, that hyphens must be removed.

@Property
def style(self):
"""
Read/write. A |_TableStyle| object representing the style applied to
this table. The default table style for the document (often Normal Table) is returned if the table has no directly-applied style.
Assigning |None| to this property removes any directly-applied table
style causing it to inherit the default table style of the document.
Note that the style name of a table style differs slightly from that
displayed in the user interface; a hyphen, if it appears, must be
removed. For example, Light Shading - Accent 1 becomes Light Shading Accent 1.
"""

Is there a way leave the dashes in the docx file like before, because all hyphens are removed from the table content.

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions