diff -r 0a02c433f52d -r 5883ce99ee12 QScintilla/Exporters/ExporterHTML.py --- a/QScintilla/Exporters/ExporterHTML.py Fri Nov 01 15:48:48 2013 +0100 +++ b/QScintilla/Exporters/ExporterHTML.py Sun Nov 03 15:58:22 2013 +0100 @@ -125,7 +125,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) and \ styleIsUsed[istyle]: if lex.description(istyle) or \ @@ -409,7 +409,7 @@ self.trUtf8("Export source"), self.trUtf8( """<p>The source could not be exported to""" - """ <b>{0}</b>.</p><p>Reason: {1}</p>""")\ - .format(filename, str(err))) + """ <b>{0}</b>.</p><p>Reason: {1}</p>""") + .format(filename, str(err))) finally: QApplication.restoreOverrideCursor()