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:
parent
4308f2e8a5
commit
12b001221c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue