Fix workload report in case of time range with individual timestamps

Simply replacing the first and last characters of a timestampt with `[` and `]`
is not sufficient when a time range is given with a start timestamp and an end
timestamp, because then the result would be something like `[2022-09-30 Fri
08:00>--<2022-09-30 Fri 09:00]`.  So let's replace all `<` with `[` and all `>`
with `]`, just to be save.
This commit is contained in:
Daniel - 2022-09-30 14:54:30 +02:00
parent 4308f2e8a5
commit 12b001221c
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 3 additions and 1 deletions

View File

@ -485,7 +485,9 @@ understood by `org-read-date'."
;; return the empty string.
(--if-let (org-entry-get (org-id-find task-id 'marker)
property)
(concat "[" (substring it 1 -1) "]")
(->> it
(string-replace "<" "[")
(string-replace ">" "]"))
"")))
(insert "| Task | Effort | Timestamp | SCHEDULED | DEADLINE |\n|---|\n")