Fix escape sequence usage in strings. Remove unneeded import of os

Rename /config API method to config to match it's purpose. UI is
anyway too generic, and not what it is doing
This commit is contained in:
Debanjum Singh Solanky
2022-08-03 14:00:30 +03:00
parent a4eb55dd00
commit 38df727ef4
3 changed files with 6 additions and 4 deletions

View File

@@ -194,7 +194,7 @@ def makelist(filename):
n.setHeading(prtysrch.group(2))
# Set SOURCE property to a file+heading based org-mode link to the entry
escaped_heading = n.Heading().replace("[","\[").replace("]","\]")
escaped_heading = n.Heading().replace("[","\\[").replace("]","\\]")
n.properties['SOURCE'] = f'[[file:{normalize_filename(filename)}::*{escaped_heading}]]'
return nodelist