Fix slash path

This commit is contained in:
Andros Fenollosa 2023-10-30 15:40:53 +01:00
parent f5c69fe943
commit d4f7e73879

View File

@ -52,7 +52,7 @@ for filename in glob.iglob(path_to_files, recursive=True):
with open(filename, "r") as file:
# Get the heading
first_line = file.readline()
heading = first_line.replace("# ", "").replace("\n", "")
heading = first_line.replace("# ", "").replace("\n", "").replace("/", "-")
# Delete two first lines
lines = file.readlines()
lines_without_heading = lines[1:]