From 58b8fe315822e78af8ac1833f9c7ac7a94af54f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 1 Jul 2025 12:34:01 -0400 Subject: [PATCH] Allow en-dashes if surrounded by spaces --- pomodoro_to_harvest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 4e88929..efe0e2c 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -171,6 +171,7 @@ for preferred, alternatives in compound_project_tasks.items(): # never noticed because i use them so consistently. timelog['project'] = timelog['project'].str.replace('---', '—', regex=False); timelog['project'] = timelog['project'].str.replace('--', '—', regex=False); +timelog['project'] = timelog['project'].str.replace(' – ', '—', regex=False); timelog['project'] = timelog['project'].str.replace(' - ', '—', regex=False); # If a compound project was specified, break that out into a sub-project (in # Harvest, we use Task, which is really task type, for this).