diff -r 0a02c433f52d -r 5883ce99ee12 QScintilla/Exporters/ExporterPDF.py --- a/QScintilla/Exporters/ExporterPDF.py Fri Nov 01 15:48:48 2013 +0100 +++ b/QScintilla/Exporters/ExporterPDF.py Sun Nov 03 15:58:22 2013 +0100 @@ -198,11 +198,11 @@ # sanity check for page size and margins pageWidthMin = int(self.leading) + \ - self.pageMargins["left"] + self.pageMargins["right"] + self.pageMargins["left"] + self.pageMargins["right"] if self.pageWidth < pageWidthMin: self.pageWidth = pageWidthMin pageHeightMin = int(self.leading) + \ - self.pageMargins["top"] + self.pageMargins["bottom"] + self.pageMargins["top"] + self.pageMargins["bottom"] if self.pageHeight < pageHeightMin: self.pageHeight = pageHeightMin @@ -245,8 +245,8 @@ "/MediaBox[ 0 0 {1:d} {2:d}]\n" \ "/Contents {3:d} 0 R\n" \ "/Resources {4:d} 0 R\n>>\n".format( - pagesRef, self.pageWidth, self.pageHeight, - self.pageContentStart + i, resourceRef) + pagesRef, self.pageWidth, self.pageHeight, + self.pageContentStart + i, resourceRef) self.oT.add(buffer) # create page tree object (PDF1.4Ref(p86)) @@ -481,8 +481,8 @@ if lex: istyle = 0 while istyle <= QsciScintilla.STYLE_MAX: - if (istyle <= QsciScintilla.STYLE_DEFAULT or \ - istyle > QsciScintilla.STYLE_LASTPREDEFINED): + if (istyle <= QsciScintilla.STYLE_DEFAULT or + istyle > QsciScintilla.STYLE_LASTPREDEFINED): if lex.description(istyle) or \ istyle == QsciScintilla.STYLE_DEFAULT: style = PDFStyle() @@ -601,7 +601,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()