--- a/QScintilla/Exporters/ExporterTEX.py Fri Mar 11 08:55:14 2011 +0100 +++ b/QScintilla/Exporters/ExporterTEX.py Fri Mar 11 16:51:57 2011 +0100 @@ -22,13 +22,14 @@ import Preferences + class ExporterTEX(ExporterBase): """ Class implementing an exporter for TeX. """ CHARZ = ord('z') - ord('a') + 1 - def __init__(self, editor, parent = None): + def __init__(self, editor, parent=None): """ Constructor @@ -148,7 +149,7 @@ styleIsUsed[QsciScintilla.STYLE_DEFAULT] = True try: - f = open(filename, "w", encoding = "utf-8") + f = open(filename, "w", encoding="utf-8") f.write("\\documentclass[a4paper]{article}\n") f.write("\\usepackage[a4paper,margin=1.5cm]{geometry}\n") @@ -181,7 +182,7 @@ font = Preferences.getEditorOtherFonts("DefaultFont") self.__defineTexStyle(font, colour, paper, f, 0) - self.__defineTexStyle(font, colour, paper, f, + self.__defineTexStyle(font, colour, paper, f, QsciScintilla.STYLE_DEFAULT) f.write("\\begin{document}\n\n") @@ -262,4 +263,4 @@ """<p>Reason: {1}</p>""")\ .format(filename, str(err))) finally: - QApplication.restoreOverrideCursor() \ No newline at end of file + QApplication.restoreOverrideCursor()