← 返回首页
Support RGBColor shorthand hex strings by Mirochill · Pull Request #1556 · 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

Support RGBColor shorthand hex strings#1556

Draft
Mirochill wants to merge 1 commit into
python-openxml:masterfrom
Mirochill:fix-1466-rgbcolor-shorthand
Draft

Support RGBColor shorthand hex strings#1556
Mirochill wants to merge 1 commit into
python-openxml:masterfrom
Mirochill:fix-1466-rgbcolor-shorthand

Conversation

Copy link
Copy Markdown

Summary

  • Expand three-digit RGB shorthand strings before constructing RGBColor values.
  • Cover mixed-case shorthand values such as aBc in RGBColor.from_string().

Fixes #1466

Validation

  • git diff --check
  • git diff --check HEAD~1..HEAD
  • Not run locally beyond static diff checks.

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.

Unable to parse 3-digit RGB string

1 participant

Footer

© 2026 GitHub, Inc.