Skip to content

Commit

Permalink
Update fmhy-search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rust1667 committed Nov 12, 2023
1 parent c2c74c0 commit 007a421
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fmhy-search.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ def addPretext(lines, icon, baseURL, subURL):
if line.startswith("#"): #Title Lines
if not subURL=="storage":
if line.startswith("# ►"):
currMdSubheading = "#" + line.replace("# ►", "").strip().replace(" / ", "--").replace(" ", "-").lower()
currMdSubheading = "#" + line.replace("# ►", "").strip().replace(" / ", "-").replace(" ", "-").lower()
currSubCat = "/ " + line.replace("# ►", "").strip() + " "
currSubSubCat = ""
elif line.startswith("## ▷"):
if not subURL=="non-english": #Because non-eng section has multiple subsubcats with same names
currMdSubheading = "#" + line.replace("## ▷", "").strip().replace(" / ", "--").replace(" ", "-").lower()
currMdSubheading = "#" + line.replace("## ▷", "").strip().replace(" / ", "-").replace(" ", "-").lower()
currSubSubCat = "/ " + line.replace("## ▷", "").strip() + " "
elif subURL=="storage":
if line.startswith("## "):
currMdSubheading = "#" + line.replace("## ", "").strip().replace(" / ", "--").replace(" ", "-").lower()
currMdSubheading = "#" + line.replace("## ", "").strip().replace(" / ", "-").replace(" ", "-").lower()
currSubCat = "/ " + line.replace("## ", "").strip() + " "
currSubSubCat = ""
elif line.startswith("### "):
currMdSubheading = "#" + line.replace("### ", "").strip().replace(" / ", "--").replace(" ", "-").lower()
currMdSubheading = "#" + line.replace("### ", "").strip().replace(" / ", "-").replace(" ", "-").lower()
currSubSubCat = "/ " + line.replace("### ", "").strip() + " "

# Remove links from subcategory titles (because the screw the format)
Expand Down

0 comments on commit 007a421

Please sign in to comment.