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: with open(filename, "r") as file:
# Get the heading # Get the heading
first_line = file.readline() first_line = file.readline()
heading = first_line.replace("# ", "").replace("\n", "") heading = first_line.replace("# ", "").replace("\n", "").replace("/", "-")
# Delete two first lines # Delete two first lines
lines = file.readlines() lines = file.readlines()
lines_without_heading = lines[1:] lines_without_heading = lines[1:]