DumbWriter.send_paragraph(): Fix problem with DumbWriter reported to
authorFred Drake <fdrake@acm.org>
Tue, 12 Jan 1999 18:13:27 +0000 (18:13 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 12 Jan 1999 18:13:27 +0000 (18:13 +0000)
the newsgroup by Raymond Tong Leng Ng <rntl@yahoo.com>.

Lib/formatter.py

index a3e82a440a7093501358baabf450e874a5419d0d..4b340d52ba3c6168964c75028cc8fbbd2799b6c5 100644 (file)
@@ -331,7 +331,7 @@ class DumbWriter(NullWriter):
         self.atbreak = 0
 
     def send_paragraph(self, blankline):
-        self.file.write('\n' + '\n'*blankline)
+        self.file.write('\n'*blankline)
         self.col = 0
         self.atbreak = 0