mirror of
https://github.com/vale981/wunderlist-to-org
synced 2025-03-04 16:51:39 -05:00
indent deadline
This commit is contained in:
parent
aeba097362
commit
b8167174e4
1 changed files with 6 additions and 2 deletions
|
@ -79,7 +79,7 @@ class OrgWriter:
|
|||
return self
|
||||
|
||||
def emit_node_title(self, title, todo_state=None, tags=None):
|
||||
out_title = "".join(["*" for _ in range(self._level + 1)])
|
||||
out_title = "*" * (self._level + 1)
|
||||
|
||||
if todo_state:
|
||||
out_title += f" {todo_state.upper()}"
|
||||
|
@ -98,7 +98,11 @@ class OrgWriter:
|
|||
if not date:
|
||||
return self
|
||||
|
||||
stamp = f"{timestamp_type.upper()}: " if timestamp_type else ""
|
||||
stamp = (
|
||||
((self._level + 2) * " " + f"{timestamp_type.upper()}: ")
|
||||
if timestamp_type
|
||||
else ""
|
||||
)
|
||||
|
||||
formated_date = _format_org_date(date)
|
||||
stamp += f"<{formated_date}>" if active else f"[{formated_date}]"
|
||||
|
|
Loading…
Add table
Reference in a new issue