From d4f7e73879351f02b1fc99ca33f4b13b43946286 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Mon, 30 Oct 2023 15:40:53 +0100 Subject: [PATCH] Fix slash path --- notion-to-joplin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notion-to-joplin.py b/notion-to-joplin.py index b1cf1ee..811bc1b 100755 --- a/notion-to-joplin.py +++ b/notion-to-joplin.py @@ -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:]