From 6f4f110163ad2bd221a0abe5daba0534ecfe73e7 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 24 Mar 2018 15:06:57 -0400 Subject: [PATCH] Attempt at addingautoindent --- .../55000-present_line_if_cursor_change_vertical.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fenrirscreenreader/commands/onCursorChange/55000-present_line_if_cursor_change_vertical.py b/src/fenrirscreenreader/commands/onCursorChange/55000-present_line_if_cursor_change_vertical.py index 6d387c56..d80dcd18 100644 --- a/src/fenrirscreenreader/commands/onCursorChange/55000-present_line_if_cursor_change_vertical.py +++ b/src/fenrirscreenreader/commands/onCursorChange/55000-present_line_if_cursor_change_vertical.py @@ -36,6 +36,9 @@ class command(): if currLine.isspace(): self.env['runtime']['outputManager'].presentText(_("blank"), soundIcon='EmptyLine', interrupt=True, flush=False) else: + if self.env['runtime']['settingsManager'].getSettingAsBool('general', 'autoPresentIndent'): + if oldIndent < newIndent: self.env['runtime']['outputManager'].presentText('indented ' + str(oldIndent - newIndent), interrupt=True, flush=False) + if oldIndent > newIndent: self.env['runtime']['outputManager'].presentText('outdented ' + str(newIndent - oldIndent), interrupt=True, flush=False) self.env['runtime']['outputManager'].presentText(currLine, interrupt=True, flush=False) def setCallback(self, callback):