From 007a4214737821af00362694debc64e73447d498 Mon Sep 17 00:00:00 2001 From: Rust1667 Date: Sun, 12 Nov 2023 21:04:26 +0100 Subject: [PATCH] Update fmhy-search.py --- fmhy-search.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fmhy-search.py b/fmhy-search.py index 4067c38..ade5202 100644 --- a/fmhy-search.py +++ b/fmhy-search.py @@ -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)