Browse Source

Fix tags format

Thanks dragos-niculescu! I couldn't figure out how to pull from his fork.
6847f2527b
master
Macoy Madson 2 months ago
parent
commit
e3972fed7e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      KeepToOrg.py

+ 2
- 2
KeepToOrg.py View File

@@ -88,9 +88,9 @@ class Note:
if body and not len(self.tags):
return '*{} {}\n{}'.format(nesting, orgTitle, body)
if not body and len(self.tags):
return '*{} {}\n{}'.format(nesting, orgTitle, tagsToOrgString(self.tags))
return '*{} {} {}\n'.format(nesting, orgTitle, tagsToOrgString(self.tags))
else:
return "*{} {}\n{}\n{}".format(nesting, orgTitle, body, tagsToOrgString(self.tags))
return "*{} {} {}\n{}\n".format(nesting, orgTitle, body, tagsToOrgString(self.tags))
# If no body nor tags, note should be a single line
else:
return '*{} {}'.format(nesting, orgTitle)


Loading…
Cancel
Save