broadfield-dev commited on
Commit
19b1f71
·
verified ·
1 Parent(s): b567446

Update app_logic.py

Browse files
Files changed (1) hide show
  1. app_logic.py +2 -2
app_logic.py CHANGED
@@ -61,8 +61,8 @@ def load_token_from_image_and_set_env(image_pil_object: Image.Image, password: s
61
  def process_commented_markdown(commented_input):
62
  """Process a commented markdown string by stripping '# ' from each line if any line starts with '# # Space:'."""
63
  lines = commented_input.strip().split("\n")
64
- if any(line.strip().startswith("# # Space:") for line in lines):
65
- cleaned_lines = [line.lstrip("# ") for line in lines]
66
  return "\n".join(cleaned_lines)
67
  return commented_input
68
 
 
61
  def process_commented_markdown(commented_input):
62
  """Process a commented markdown string by stripping '# ' from each line if any line starts with '# # Space:'."""
63
  lines = commented_input.strip().split("\n")
64
+ if any(line.strip().startswith("## Space:") for line in lines):
65
+ cleaned_lines = [line.lstrip("#") for line in lines]
66
  return "\n".join(cleaned_lines)
67
  return commented_input
68