mirror of
https://github.com/tanrax/notion-to-joplin.git
synced 2024-11-21 12:35:41 +01:00
Fix slash path
This commit is contained in:
parent
f5c69fe943
commit
d4f7e73879
@ -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:]
|
||||
|
Loading…
Reference in New Issue
Block a user