python-openxml / python-docx

Create and modify Word documents with Python
MIT License
4.54k stars 1.11k forks source link

Update Table Style Example in the Quickstart Guide #1371

Open lb803 opened 5 months ago

lb803 commented 5 months ago

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.