Skip to content

Commit a7bc0ea

Browse files
committed
convert pptx
1 parent cec250e commit a7bc0ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/common/convert-to-pptx.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def maketitle(cell,slide):
113113
except UnidentifiedImageError:
114114
print(" image/jpeg error for cell number "+str(index))
115115
elif "text/plain" in output.get("data", {}):
116-
if len(output.data["text/plain"]<20):
116+
if len(output.data["text/plain"])<20:
117117
slide = prs.slides.add_slide(prs.slide_layouts[5])
118118
maketitle(cell,slide)
119119
slide.shapes[0].text="".join(output.data["text/plain"])
@@ -137,7 +137,7 @@ def maketitle(cell,slide):
137137
par.font.color.rgb = RGBColor(0, 0, 0)
138138
slide.shapes[0].text_frame.fit_text(font_family="Courier",max_size=30, font_file=r".github/common/fonts/cour.ttf")
139139
elif "text" in output:
140-
if len(output["text"]<20):
140+
if len(output["text"])<20:
141141
slide = prs.slides.add_slide(prs.slide_layouts[5])
142142
maketitle(cell,slide)
143143
slide.shapes[0].text="".join(output["text"])

0 commit comments

Comments
 (0)