Remove "Path" prefix from org ancestor heading in compiled entry

This commit is contained in:
Debanjum Singh Solanky
2024-06-06 16:51:26 +05:30
parent dd2225b1aa
commit 18f7e6e7ed
2 changed files with 9 additions and 9 deletions

View File

@@ -182,7 +182,7 @@ class OrgToEntries(TextToEntries):
# Children nodes do not need ancestors trail as root parent node will have it
if not entry_heading:
ancestors_trail = " / ".join(parsed_entry.ancestors) or Path(entry_to_file_map[parsed_entry])
heading = f"* Path: {ancestors_trail}\n{heading}" if heading else f"* Path: {ancestors_trail}."
heading = f"* {ancestors_trail}\n{heading}" if heading else f"* {ancestors_trail}."
compiled = heading