mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-12 14:12:30 +02:00
Compare commits
1 Commits
v3.8.1
...
debug/wind
Author | SHA1 | Date | |
---|---|---|---|
4af02012bc |
@ -171,7 +171,9 @@ class Pferd:
|
||||
|
||||
def fmt_path_link(relative_path: PurePath) -> str:
|
||||
# We need to URL-encode the path because it might contain spaces or special characters
|
||||
link = f"file://{quote(str(crawler.output_dir.resolve(relative_path).absolute()))}"
|
||||
absolute_path = str(crawler.output_dir.resolve(relative_path).absolute())
|
||||
absolute_path = absolute_path.replace("\\\\?\\", "")
|
||||
link = f"file://{quote(absolute_path)}"
|
||||
return f"[link={link}]{fmt_path(relative_path)}[/link]"
|
||||
|
||||
something_changed = False
|
||||
|
Reference in New Issue
Block a user