Spaces:
Building
Building
Update app.py
#2
by Nehaptl66 - opened
app.py
CHANGED
|
@@ -255,18 +255,10 @@ def create_detailed_pptx(slides_data, theme):
|
|
| 255 |
for point in content_part:
|
| 256 |
p = tf.add_paragraph()
|
| 257 |
point_text = point.replace('- ', '').strip()
|
| 258 |
-
#
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
p.text = parts[0]
|
| 262 |
-
for part in parts[1:]:
|
| 263 |
-
new_p = tf.add_paragraph()
|
| 264 |
-
new_p.text = part
|
| 265 |
-
new_p.level = 1 # Indent wrapped lines
|
| 266 |
-
else:
|
| 267 |
-
p.text = point_text
|
| 268 |
|
| 269 |
-
p.level = 0
|
| 270 |
p.font.color.rgb = theme["text_color"]
|
| 271 |
p.font.size = Pt(18)
|
| 272 |
if "text_font" in theme:
|
|
|
|
| 255 |
for point in content_part:
|
| 256 |
p = tf.add_paragraph()
|
| 257 |
point_text = point.replace('- ', '').strip()
|
| 258 |
+
# Set main bullet text and formatting
|
| 259 |
+
p.text = point_text
|
| 260 |
+
p.level = 0 # Primary bullet only
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
|
|
|
|
| 262 |
p.font.color.rgb = theme["text_color"]
|
| 263 |
p.font.size = Pt(18)
|
| 264 |
if "text_font" in theme:
|