File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -166,19 +166,13 @@ def analyze_layout(layout: LayoutInfo) -> LayoutInfo:
166166 case PP_PLACEHOLDER_TYPE .TITLE :
167167 base_name = "title"
168168 case PP_PLACEHOLDER_TYPE .BODY :
169- if "content" in layout_name_lower or "text" in layout_name_lower :
170- base_name = "content"
171- else :
172- base_name = "body"
169+ base_name = "body"
173170 case PP_PLACEHOLDER_TYPE .CENTER_TITLE :
174171 base_name = "title"
175172 case PP_PLACEHOLDER_TYPE .SUBTITLE :
176173 base_name = "subtitle"
177174 case PP_PLACEHOLDER_TYPE .CHART :
178- if "chart" in sample_ph .name .lower ():
179- base_name = "chart"
180- else :
181- base_name = "content"
175+ base_name = "chart"
182176 case PP_PLACEHOLDER_TYPE .TABLE :
183177 base_name = "table"
184178 case PP_PLACEHOLDER_TYPE .SLIDE_NUMBER :
You can’t perform that action at this time.
0 commit comments