Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Table Style Example in the Quickstart Guide #1371

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lb803
Copy link

@lb803 lb803 commented Apr 12, 2024

This PR updates the table style example offered in the quickstart guide.

Currently, the quickstart guide reports an example to style tables which probably refers to an older version of python-docx. Using this example in a project running the latest version of the library (1.1.0) leads to a deprecation message "UserWarning: style lookup by style_id is deprecated. Use style name as key instead."

The API documentation reports the up-to-date convention to style tables (TL;NR the table style name allows spaces but not hyphens). This PR updates the example and its description to match the new convention.

@scanny scanny force-pushed the develop branch 5 times, most recently from 4762810 to 0a8e9c4 Compare May 1, 2024 19:26
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