Skip to content

Conversation

@znsoooo
Copy link

@znsoooo znsoooo commented Dec 22, 2021

return current table's merged cells' info sort as [(r1, r2, c1, c2), ...].

return current table's merged cells' info sort as [(r1, r2, c1, c2), ...].
@znsoooo
Copy link
Author

znsoooo commented Dec 22, 2021

Usage like:

import docx
doc = docx.Document('example.docx')
for table in doc.tables:
    print(table.merges)  #  return: [(r1, r2, c1, c2), ...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant