File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def maketitle(cell,slide):
113
113
except UnidentifiedImageError :
114
114
print (" image/jpeg error for cell number " + str (index ))
115
115
elif "text/plain" in output .get ("data" , {}):
116
- if len (output .data ["text/plain" ]< 20 ) :
116
+ if len (output .data ["text/plain" ]) < 20 :
117
117
slide = prs .slides .add_slide (prs .slide_layouts [5 ])
118
118
maketitle (cell ,slide )
119
119
slide .shapes [0 ].text = "" .join (output .data ["text/plain" ])
@@ -137,7 +137,7 @@ def maketitle(cell,slide):
137
137
par .font .color .rgb = RGBColor (0 , 0 , 0 )
138
138
slide .shapes [0 ].text_frame .fit_text (font_family = "Courier" ,max_size = 30 , font_file = r".github/common/fonts/cour.ttf" )
139
139
elif "text" in output :
140
- if len (output ["text" ]< 20 ) :
140
+ if len (output ["text" ]) < 20 :
141
141
slide = prs .slides .add_slide (prs .slide_layouts [5 ])
142
142
maketitle (cell ,slide )
143
143
slide .shapes [0 ].text = "" .join (output ["text" ])
You can’t perform that action at this time.
0 commit comments