--- a/QScintilla/Exporters/ExporterPDF.py Sat Feb 03 10:45:52 2018 +0100 +++ b/QScintilla/Exporters/ExporterPDF.py Sat Feb 03 16:15:24 2018 +0100 @@ -427,7 +427,7 @@ self.editor.recolor(0, -1) lex = self.editor.getLexer() - tabSize = Preferences.getEditor("TabWidth") + tabSize = self.editor.getEditorConfig("TabWidth") if tabSize == 0: tabSize = 4