QScintilla/Printer.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3011
18292228c724
child 3060
5883ce99ee12
--- a/QScintilla/Printer.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/QScintilla/Printer.py	Fri Oct 18 23:00:41 2013 +0200
@@ -60,15 +60,16 @@
         """
         fn = self.docName()
         
-        header = QApplication.translate('Printer',
-                                        '{0} - Printed on {1}, {2} - Page {3}')\
+        header = QApplication.translate(
+            'Printer', '{0} - Printed on {1}, {2} - Page {3}')\
             .format(fn, self.date, self.time, pagenr)
         
         painter.save()
         painter.setFont(self.headerFont)    # set our header font
         painter.setPen(QColor(Qt.black))            # set color
         if drawing:
-            painter.drawText(area.right() - painter.fontMetrics().width(header),
+            painter.drawText(
+                area.right() - painter.fontMetrics().width(header),
                 area.top() + painter.fontMetrics().ascent(), header)
         area.setTop(area.top() + painter.fontMetrics().height() + 5)
         painter.restore()

eric ide

mercurial