From 232014fd7a60252d14d74f978667760ed17b7db8 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 14 Jul 2016 19:05:02 -0400 Subject: [PATCH] Changed empty line to blank. Same message, less time speaking. --- src/fenrir-package/commands/commands/curr_line.py | 2 +- src/fenrir-package/commands/commands/next_line.py | 2 +- src/fenrir-package/commands/commands/prev_line.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fenrir-package/commands/commands/curr_line.py b/src/fenrir-package/commands/commands/curr_line.py index 4a4e90fc..36bb43b3 100644 --- a/src/fenrir-package/commands/commands/curr_line.py +++ b/src/fenrir-package/commands/commands/curr_line.py @@ -9,7 +9,7 @@ class command(): environment['screenData']['newCursorReview'] = environment['screenData']['newCursor'].copy() if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']].replace(" ","").replace("\n","").replace("\t","") == '': - environment['runtime']['outputManager'].speakText(environment, "empty line") + environment['runtime']['outputManager'].speakText(environment, "blank") else: environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']]) return environment diff --git a/src/fenrir-package/commands/commands/next_line.py b/src/fenrir-package/commands/commands/next_line.py index 165b43ae..9a64b30d 100644 --- a/src/fenrir-package/commands/commands/next_line.py +++ b/src/fenrir-package/commands/commands/next_line.py @@ -11,7 +11,7 @@ class command(): environment['screenData']['newCursorReview']['y'] = environment['screenData']['newCursorReview']['y'] + 1 if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']].replace(" ","").replace("\n","").replace("\t","") == '': - environment['runtime']['outputManager'].speakText(environment, "empty line") + environment['runtime']['outputManager'].speakText(environment, "blank") else: environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']]) return environment diff --git a/src/fenrir-package/commands/commands/prev_line.py b/src/fenrir-package/commands/commands/prev_line.py index ba5e3e6a..4d6bba03 100644 --- a/src/fenrir-package/commands/commands/prev_line.py +++ b/src/fenrir-package/commands/commands/prev_line.py @@ -10,7 +10,7 @@ class command(): if environment['screenData']['newCursorReview']['y'] - 1 >= 0: environment['screenData']['newCursorReview']['y'] = environment['screenData']['newCursorReview']['y'] - 1 if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']].replace(" ","").replace("\n","").replace("\t","") == '': - environment['runtime']['outputManager'].speakText(environment, "empty line") + environment['runtime']['outputManager'].speakText(environment, "blank") else: environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']]) return environment