Fix escaping filename when normalizing in org node parser

This commit is contained in:
Debanjum 2024-11-04 20:24:01 -08:00
parent 5724d16a6f
commit b51ee644aa

View file

@ -49,7 +49,7 @@ def normalize_filename(filename):
normalized_filename = f"~/{relpath(filename, start=Path.home())}"
else:
normalized_filename = filename
escaped_filename = f"{normalized_filename}".replace("[", "\[").replace("]", "\]")
escaped_filename = f"{normalized_filename}".replace("[", r"\[").replace("]", r"\]")
return escaped_filename