OSDN Git Service

Fix cpu 100%. avoid inserting large data with leftmargin tag.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Mon, 4 Sep 2006 07:26:50 +0000 (16:26 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Mon, 4 Sep 2006 07:26:50 +0000 (16:26 +0900)
src/FukuiNoNamari/barehtmlparser.py

index 851702a..ec2bd8f 100644 (file)
@@ -55,6 +55,7 @@ class BareHTMLParser(HTMLParserEx):
 
     def newline(self):
         self.buffer = self.buffer.rstrip(" ")
+        self.flush()
         self.to_out("\n")
 
     # override