Skip to content

Commit dbba250

Browse files
author
Steve Canny
committed
docs: update documentation for merge()
1 parent b0061eb commit dbba250

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/api/table.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Table objects are constructed using the ``add_table()`` method on |Document|.
1515

1616
.. autoclass:: Table
1717
:members:
18+
:exclude-members: table
1819

1920

2021
|_Cell| objects

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
9090
.. |InlineShapes| replace:: :class:`.InlineShapes`
9191
92+
.. |InvalidSpanError| replace:: :class:`.InvalidSpanError`
93+
9294
.. |int| replace:: :class:`int`
9395
9496
.. |Length| replace:: :class:`.Length`

docx/table.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ def add_table(self, rows, cols):
182182
def merge(self, other_cell):
183183
"""
184184
Return a merged cell created by spanning the rectangular region
185-
demarcated by using the extents of this cell and *other_cell* as
186-
diagonal corners. Raises |InvalidSpanError| if the cells do not
187-
define a rectangular region.
185+
having this cell and *other_cell* as diagonal corners. Raises
186+
|InvalidSpanError| if the cells do not define a rectangular region.
188187
"""
189188
tc, tc_2 = self._tc, other_cell._tc
190189
merged_tc = tc.merge(tc_2)

0 commit comments

Comments
 (0)