Merge branch 'develop' of ssh://code.codigoparallevar.com:2022/lyz/org-rw into develop

This commit is contained in:
Lyz 2024-07-20 10:48:19 +02:00
commit 921495fca8
No known key found for this signature in database
GPG Key ID: 6C7D7C1612CDE02F

View File

@ -1871,7 +1871,7 @@ class OrgDoc:
for keyword in keywords: for keyword in keywords:
if keyword.key in ("TODO", "SEQ_TODO"): if keyword.key in ("TODO", "SEQ_TODO"):
todo_kws, done_kws = re.sub(r"\(.\)", "", keyword.value).split("|", 1) todo_kws, done_kws = re.sub(r"\([^)]+\)", "", keyword.value).split("|", 1)
self.todo_keywords = re.sub(r"\s{2,}", " ", todo_kws.strip()).split() self.todo_keywords = re.sub(r"\s{2,}", " ", todo_kws.strip()).split()
self.done_keywords = re.sub(r"\s{2,}", " ", done_kws.strip()).split() self.done_keywords = re.sub(r"\s{2,}", " ", done_kws.strip()).split()