diff -r a5b9f6a38faf -r cbd34d558bd9 QScintilla/Exporters/ExporterHTML.py --- a/QScintilla/Exporters/ExporterHTML.py Sat Feb 03 10:45:52 2018 +0100 +++ b/QScintilla/Exporters/ExporterHTML.py Sat Feb 03 16:15:24 2018 +0100 @@ -401,7 +401,7 @@ # export ReST to HTML html = self.__generateFromReSTDocutils() else: - tabSize = Preferences.getEditor("TabWidth") + tabSize = self.editor.getEditorConfig("TabWidth") if tabSize == 0: tabSize = 4 wysiwyg = Preferences.getEditorExporter("HTML/WYSIWYG")