Spaces:
Sleeping
Sleeping
Update app_logic.py
Browse files- app_logic.py +3 -3
app_logic.py
CHANGED
@@ -62,8 +62,8 @@ def process_commented_markdown(lines):
|
|
62 |
"""Process a commented markdown string by stripping '# ' from each line if any line starts with '# # Space:'."""
|
63 |
if any(line.strip().startswith("# ## File Structure") for line in lines):
|
64 |
cleaned_lines = [line.lstrip("# ") for line in lines]
|
65 |
-
return
|
66 |
-
return
|
67 |
|
68 |
|
69 |
# --- `parse_markdown` (Unchanged from previous corrected version) ---
|
@@ -72,7 +72,7 @@ def parse_markdown(markdown_input):
|
|
72 |
current_file_path = None; current_file_content_lines = []
|
73 |
in_file_definition = False; in_code_block = False
|
74 |
lines = markdown_clean.strip().split("\n")
|
75 |
-
|
76 |
|
77 |
for line_content_orig in lines:
|
78 |
line_content_stripped = line_content_orig.strip()
|
|
|
62 |
"""Process a commented markdown string by stripping '# ' from each line if any line starts with '# # Space:'."""
|
63 |
if any(line.strip().startswith("# ## File Structure") for line in lines):
|
64 |
cleaned_lines = [line.lstrip("# ") for line in lines]
|
65 |
+
return cleaned_lines
|
66 |
+
return lines
|
67 |
|
68 |
|
69 |
# --- `parse_markdown` (Unchanged from previous corrected version) ---
|
|
|
72 |
current_file_path = None; current_file_content_lines = []
|
73 |
in_file_definition = False; in_code_block = False
|
74 |
lines = markdown_clean.strip().split("\n")
|
75 |
+
lines = process_commented_markdown(lines)
|
76 |
|
77 |
for line_content_orig in lines:
|
78 |
line_content_stripped = line_content_orig.strip()
|