Fix todo block detection
This commit is contained in:
parent
12c1f68343
commit
46a07b1e48
1 changed files with 3 additions and 0 deletions
|
@ -37,10 +37,13 @@ def parse_file(options):
|
|||
|
||||
todo_block = get_todo_block_date(line, options.todo_block_title)
|
||||
if todo_block == False:
|
||||
curdate = ""
|
||||
continue
|
||||
if todo_block != "same":
|
||||
curdate = todo_block
|
||||
continue
|
||||
if not curdate:
|
||||
continue
|
||||
|
||||
completed_task = re.search(r"^x ((?:\([A-D]\))? ?.*)$", line)
|
||||
if completed_task and options.taskwarrior_log_done:
|
||||
|
|
Loading…
Reference in a new issue