OSDN Git Service

Fix a bug.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Fri, 25 Aug 2006 19:55:39 +0000 (04:55 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Fri, 25 Aug 2006 19:55:39 +0000 (04:55 +0900)
src/Hage1/barehtmlparser.py
src/Hage1/thread_window.py

index 0b8cc68..851702a 100644 (file)
@@ -39,6 +39,7 @@ class BareHTMLParser(HTMLParserEx):
         self.buffer = ""
 
     def reset_func(self, to_out_func):
+        self.flush()
         self.to_out_func = to_out_func
 
     def to_out(self, data):
index 9f233a2..ea18b5b 100644 (file)
@@ -322,7 +322,7 @@ class WinWrap:
 
         # msg
         p.reset_func(self.untiedata_to_buffer_with_leftmargin)
-        p.feed(msg)
+        p.feed(msg.lstrip(" "))
 
         p.feed("<br><br>")
         p.close()