diff --git a/src/fenrirscreenreader/core/outputManager.py b/src/fenrirscreenreader/core/outputManager.py index 5cb82e49..5f502985 100644 --- a/src/fenrirscreenreader/core/outputManager.py +++ b/src/fenrirscreenreader/core/outputManager.py @@ -96,7 +96,11 @@ class outputManager(): self.env['runtime']['debug'].writeDebugOut(str(e),debug.debugLevel.ERROR) try: - cleanText = text.replace('\n',' , ') + if self.env['runtime']['settingsManager'].getSettingAsBool('general', 'newLinePause'): + cleanText = text.replace('\n',' , ') + else: + cleanText = text.replace('\n',' ') + cleanText = self.env['runtime']['headLineManager'].replaceHeadLines(cleanText) cleanText = self.env['runtime']['punctuationManager'].proceedPunctuation(cleanText, ignorePunctuation) cleanText = re.sub(' +$',' ', cleanText) diff --git a/src/fenrirscreenreader/core/screenManager.py b/src/fenrirscreenreader/core/screenManager.py index a496f94c..db8a66a0 100644 --- a/src/fenrirscreenreader/core/screenManager.py +++ b/src/fenrirscreenreader/core/screenManager.py @@ -136,7 +136,7 @@ class screenManager(): newScreenText.split('\n')) diffList = list(diff) - if self.env['runtime']['settingsManager'].getSetting('general', 'newLinePause') and not typing: + if self.env['runtime']['settingsManager'].getSettingAsBool('general', 'newLinePause') and not typing: self.env['screen']['newDelta'] = '\n'.join(x[2:] for x in diffList if x[0] == '+') else: self.env['screen']['newDelta'] = ''.join(x[2:] for x in diffList if x[0] == '+')