Spaces:
Running
Running
Update src/DAG2ppt.py
Browse files- src/DAG2ppt.py +8 -1
src/DAG2ppt.py
CHANGED
|
@@ -712,7 +712,14 @@ def generate_ppt(
|
|
| 712 |
continue
|
| 713 |
|
| 714 |
norm_node = _normalize_node(node)
|
| 715 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 716 |
|
| 717 |
# Skip if no template or explicitly null/empty
|
| 718 |
if not template_file or template_file.lower() == "null":
|
|
|
|
| 712 |
continue
|
| 713 |
|
| 714 |
norm_node = _normalize_node(node)
|
| 715 |
+
|
| 716 |
+
raw_template = norm_node.get("template")
|
| 717 |
+
# Check if raw_template exists and is not empty after stripping whitespace
|
| 718 |
+
if raw_template and raw_template.strip():
|
| 719 |
+
template_file = raw_template.strip()
|
| 720 |
+
else:
|
| 721 |
+
# Assign default value when template is None, empty string "", or only whitespace
|
| 722 |
+
template_file = "T1_TextOnly.html"
|
| 723 |
|
| 724 |
# Skip if no template or explicitly null/empty
|
| 725 |
if not template_file or template_file.lower() == "null":
|