← 返回首页
docs: correct built-in style lookup example by Mirochill · Pull Request #1557 · python-openxml/python-docx · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

docs: correct built-in style lookup example#1557

Draft
Mirochill wants to merge 1 commit into
python-openxml:masterfrom
Mirochill:docs-1439-style-lookup-example
Draft

docs: correct built-in style lookup example#1557
Mirochill wants to merge 1 commit into
python-openxml:masterfrom
Mirochill:docs-1439-style-lookup-example

Conversation

Copy link
Copy Markdown

Summary

  • Update the WD_BUILTIN_STYLE example to look up "Body Text" by style name.
  • Clarify that built-in styles must be defined in the document and that WD_STYLE members are not style lookup keys.

Fixes #1439

Validation

  • git diff --check
  • git diff --cached --check
  • git diff --check HEAD~1..HEAD
  • git show --check --oneline HEAD -- src/docx/enum/style.py docs/api/enum/WdBuiltinStyle.rst
  • Not run locally

This file contains hidden or 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
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.

WD_BUILTIN_STYLE gives no style with name

1 participant

Footer

© 2026 GitHub, Inc.