forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from openlawlibrary/aleksandarbos/sync-with-up…
…stream sync with upstream
- Loading branch information
Showing
117 changed files
with
28,901 additions
and
1,497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
/docs/.build/ | ||
/*.egg-info | ||
*.pyc | ||
.pytest_cache/ | ||
_scratch/ | ||
Session.vim | ||
/.tox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
include HISTORY.rst LICENSE README.rst tox.ini | ||
recursive-include tests *.py | ||
recursive-include features * | ||
recursive-include docx/templates * | ||
recursive-include tests/test_files * | ||
|
||
graft docx/templates | ||
graft features | ||
graft tests | ||
graft docs | ||
prune docs/.build | ||
global-exclude .DS_Store | ||
global-exclude __pycache__ | ||
global-exclude *.py[co] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.. _WdCellVerticalAlignment: | ||
|
||
``WD_CELL_VERTICAL_ALIGNMENT`` | ||
============================== | ||
|
||
alias: **WD_ALIGN_VERTICAL** | ||
|
||
Specifies the vertical alignment of text in one or more cells of a table. | ||
|
||
Example:: | ||
|
||
from docx.enum.table import WD_ALIGN_VERTICAL | ||
|
||
table = document.add_table(3, 3) | ||
table.cell(0, 0).vertical_alignment = WD_ALIGN_VERTICAL.BOTTOM | ||
|
||
---- | ||
|
||
TOP | ||
Text is aligned to the top border of the cell. | ||
|
||
CENTER | ||
Text is aligned to the center of the cell. | ||
|
||
BOTTOM | ||
Text is aligned to the bottom border of the cell. | ||
|
||
BOTH | ||
This is an option in the OpenXml spec, but not in Word itself. It's not | ||
clear what Word behavior this setting produces. If you find out please let | ||
us know and we'll update this documentation. Otherwise, probably best to | ||
avoid this option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. _WdRowHeightRule: | ||
|
||
``WD_ROW_HEIGHT_RULE`` | ||
====================== | ||
|
||
alias: **WD_ROW_HEIGHT** | ||
|
||
Specifies the rule for determining the height of a table row | ||
|
||
Example:: | ||
|
||
from docx.enum.table import WD_ROW_HEIGHT_RULE | ||
|
||
table = document.add_table(3, 3) | ||
table.rows[0].height_rule = WD_ROW_HEIGHT_RULE.EXACTLY | ||
|
||
---- | ||
|
||
AUTO | ||
The row height is adjusted to accommodate the tallest value in the row. | ||
|
||
AT_LEAST | ||
The row height is at least a minimum specified value. | ||
|
||
EXACTLY | ||
The row height is an exact value. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.