Skip to content

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

@Mirochill
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

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