From c186314ac4b73a0f3d11969034438cd0f86001b1 Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 30 May 2018 23:44:54 +0200 Subject: [PATCH] fix syntax --- src/fenrirscreenreader/core/attributeManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/core/attributeManager.py b/src/fenrirscreenreader/core/attributeManager.py index 00930936..34c0496b 100644 --- a/src/fenrirscreenreader/core/attributeManager.py +++ b/src/fenrirscreenreader/core/attributeManager.py @@ -120,7 +120,7 @@ class attributeManager(): except Exception as e: return False return True - def formatAttributes(self, attribute, attributeFormatString = None): + def formatAttributes(self, attribute, attributeFormatString = ''): # "black", # "red", # "green", @@ -141,7 +141,7 @@ class attributeManager(): # "blink" # "fontsieze" # "fontfamily" - if not attributeFormatString: + if attributeFormatString == '': attributeFormatString = self.env['runtime']['settingsManager'].getSetting('general', 'attributeFormatString') if not attributeFormatString: return ''