[Checkins] SVN: z3c.pt/trunk/z3c/pt/io.py We do need to 'cook' on indentation; we don't want to cook on buffered output.

Malthe Borch mborch at gmail.com
Sat Dec 22 13:11:33 EST 2007


Log message for revision 82398:
  We do need to 'cook' on indentation; we don't want to cook on buffered output.

Changed:
  U   z3c.pt/trunk/z3c/pt/io.py

-=-
Modified: z3c.pt/trunk/z3c/pt/io.py
===================================================================
--- z3c.pt/trunk/z3c/pt/io.py	2007-12-22 18:07:27 UTC (rev 82397)
+++ z3c.pt/trunk/z3c/pt/io.py	2007-12-22 18:11:32 UTC (rev 82398)
@@ -65,6 +65,7 @@
         return variable
 
     def indent(self, amount=1):
+        self.cook()
         self.indentation += amount
 
     def outdent(self, amount=1):
@@ -72,7 +73,6 @@
         self.indentation -= amount
 
     def out(self, string):
-        self.cook()
         self.queue += string
 
     def cook(self):



More information about the Checkins mailing list