Only add spaces after heading if any tags in orgnode raw entry repr

This commit is contained in:
Debanjum Singh Solanky
2024-02-12 10:14:37 +05:30
parent 2ea8a832a0
commit eaa27ca841

View File

@@ -495,12 +495,13 @@ class Orgnode(object):
if self._priority:
n = n + "[#" + self._priority + "] "
n = n + self._heading
n = "%-60s " % n # hack - tags will start in column 62
closecolon = ""
for t in self._tags:
n = n + ":" + t
closecolon = ":"
n = n + closecolon
if self._tags:
n = "%-60s " % n # hack - tags will start in column 62
closecolon = ""
for t in self._tags:
n = n + ":" + t
closecolon = ":"
n = n + closecolon
n = n + "\n"
# Get body indentation from first line of body