python-pptx2 2.19.0__py3-none-any.whl → 2.20.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pptx2/__init__.py +1 -1
- pptx2/_color.py +3 -0
- {python_pptx2-2.19.0.dist-info → python_pptx2-2.20.0.dist-info}/METADATA +1 -1
- {python_pptx2-2.19.0.dist-info → python_pptx2-2.20.0.dist-info}/RECORD +8 -8
- {python_pptx2-2.19.0.dist-info → python_pptx2-2.20.0.dist-info}/WHEEL +0 -0
- {python_pptx2-2.19.0.dist-info → python_pptx2-2.20.0.dist-info}/entry_points.txt +0 -0
- {python_pptx2-2.19.0.dist-info → python_pptx2-2.20.0.dist-info}/licenses/LICENSE +0 -0
- {python_pptx2-2.19.0.dist-info → python_pptx2-2.20.0.dist-info}/top_level.txt +0 -0
pptx2/__init__.py
CHANGED
pptx2/_color.py
CHANGED
|
@@ -41,6 +41,9 @@ def coerce_color(value: Any) -> RGBColor:
|
|
|
41
41
|
return value
|
|
42
42
|
if isinstance(value, str):
|
|
43
43
|
s = value.lstrip("#")
|
|
44
|
+
if len(s) == 3:
|
|
45
|
+
# CSS shorthand: '#888' -> '#888888' (a common generator habit)
|
|
46
|
+
s = "".join(ch * 2 for ch in s)
|
|
44
47
|
if len(s) != 6:
|
|
45
48
|
raise ValueError(
|
|
46
49
|
"color hex string must be 6 digits "
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-pptx2
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.20.0
|
|
4
4
|
Summary: Create, read, and update PowerPoint 2007+ (.pptx) files. Fork of power-pptx / python-pptx, published as python-pptx2.
|
|
5
5
|
Author: Matěj Štágl
|
|
6
6
|
Author-email: stagl@wattlescript.org
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
pptx2/__init__.py,sha256=
|
|
1
|
+
pptx2/__init__.py,sha256=_KJ9gsIp318yaKTw-u0laId2F7NL8RZupvZ6ub-hRwk,4076
|
|
2
2
|
pptx2/_agent_friendly.py,sha256=wYh9LmVuZMVlwOxzyd1mw0NmtPKQ2cTC21Y1Ww8ehO8,8834
|
|
3
|
-
pptx2/_color.py,sha256=
|
|
3
|
+
pptx2/_color.py,sha256=u7L9h98k05RaPX3ufJKA-BXqVl-LHc3SXHqPJPT7WpM,3033
|
|
4
4
|
pptx2/_slide_importer.py,sha256=Ot3lW20eS7fMKsaGaeqPyeS9zVzt5D1WkovwozWwbYY,27033
|
|
5
5
|
pptx2/_svg.py,sha256=pMURsUQaJ9-dqRl4nEZKt1VECNpA8Ghp4EwNRWcBG-c,5973
|
|
6
6
|
pptx2/_template_applier.py,sha256=H1pu7bgUMUhJzTvABuQFT7zkjSWas5NfdJIipamCvXw,12699
|
|
@@ -171,9 +171,9 @@ pptx2/text/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
171
171
|
pptx2/text/fonts.py,sha256=ECa9HuBfeTqOi-uJTz_bu7eurC7e1_64RTwDatxmkpk,16498
|
|
172
172
|
pptx2/text/layout.py,sha256=k8bqod6GyshHJtfoqFtH9W-eHTI43IB0e6SLT1ibSUU,12815
|
|
173
173
|
pptx2/text/text.py,sha256=LPqF1B4GSQNSnSlVMm1v7pgtHCymOJPTUG_Kdt5_ou4,55039
|
|
174
|
-
python_pptx2-2.
|
|
175
|
-
python_pptx2-2.
|
|
176
|
-
python_pptx2-2.
|
|
177
|
-
python_pptx2-2.
|
|
178
|
-
python_pptx2-2.
|
|
179
|
-
python_pptx2-2.
|
|
174
|
+
python_pptx2-2.20.0.dist-info/licenses/LICENSE,sha256=hLdud18ZPS9iSG3kBCBLiGYzj4A6zedCHiDejIDBXNg,1230
|
|
175
|
+
python_pptx2-2.20.0.dist-info/METADATA,sha256=Wzd9mQJVacBNBjINUvhQsmmfvFBOetyLlGxLaJc57-U,14374
|
|
176
|
+
python_pptx2-2.20.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
177
|
+
python_pptx2-2.20.0.dist-info/entry_points.txt,sha256=UpD1_pA-2BPeN0iDeD-u4NZ_yC78TvBdWu3V1xLsSRE,105
|
|
178
|
+
python_pptx2-2.20.0.dist-info/top_level.txt,sha256=NDdhJ4rOySlDU-cw4g-bQMoZCiy41WszlRXmIiReSRs,6
|
|
179
|
+
python_pptx2-2.20.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|