--- a/QScintilla/Exporters/ExporterPDF.py Sat Oct 19 12:28:12 2013 +0200 +++ b/QScintilla/Exporters/ExporterPDF.py Sat Oct 19 13:03:39 2013 +0200 @@ -479,7 +479,7 @@ if lex: istyle = 0 while istyle <= QsciScintilla.STYLE_MAX: - if (istyle <= QsciScintilla.STYLE_DEFAULT or \ + if (istyle <= QsciScintilla.STYLE_DEFAULT or istyle > QsciScintilla.STYLE_LASTPREDEFINED): if lex.description(istyle) or \ istyle == QsciScintilla.STYLE_DEFAULT: @@ -599,7 +599,7 @@ self.trUtf8("Export source"), self.trUtf8( """<p>The source could not be exported to""" - """ <b>{0}</b>.</p><p>Reason: {1}</p>""")\ + """ <b>{0}</b>.</p><p>Reason: {1}</p>""") .format(filename, str(err))) finally: QApplication.restoreOverrideCursor()