summaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts')
-rw-r--r--Scripts/transcribe_v2.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Scripts/transcribe_v2.py b/Scripts/transcribe_v2.py
index 94b8257..ba05dd0 100644
--- a/Scripts/transcribe_v2.py
+++ b/Scripts/transcribe_v2.py
@@ -844,8 +844,9 @@ def transcriptionThread(ctrl: ThreadControl):
if not ctrl.transcript.endswith(' ') and not \
commit.delta.startswith(' '):
commit.delta = ' ' + commit.delta
- if not commit.delta.endswith(' ') and not \
- commit.preview.startswith(' '):
+ if len(commit.delta) > 0 and \
+ (not commit.delta.endswith(' ')) and \
+ (not commit.preview.startswith(' ')):
commit.preview = ' ' + commit.preview
ctrl.transcript += commit.delta