Skip to content

Add support for merging the cells of a single table row. - #81

Closed
apteryks wants to merge 0 commit into
python-openxml:developfrom
apteryks:develop
Closed

apteryks wants to merge 0 commit into
python-openxml:developfrom
apteryks:develop

Conversation

@apteryks

@apteryks apteryks commented Aug 4, 2014

Copy link
Copy Markdown
Contributor

Example of use:

from docx import Document

doc = Document()
table = doc.add_table(6,6)
header_row = table.rows[0]
header_row.merge_cells()

# args can also be passed to merge_cells(mergeStart, mergeStop) in order to implement any kind of merge
# on the same row, such as:
table.rows[1].merge_cells(0,3)  # This will merge the cells indexed from 0 to 2.

@apteryks

apteryks commented Aug 4, 2014

Copy link
Copy Markdown
Contributor Author

That one can be closed. I reorganized my modifications in a single 'merge_cells_feature' branch (see #82). Sorry for the noise.

@scanny

scanny commented Aug 5, 2014

Copy link
Copy Markdown
Contributor

replaced by #82

@scanny scanny closed this Aug 5, 2014
@apteryks
apteryks deleted the develop branch August 20, 2014 17:48
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.

2 participants