OSDN Git Service

Fix a bug.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Fri, 8 Sep 2006 02:04:03 +0000 (11:04 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Fri, 8 Sep 2006 02:04:03 +0000 (11:04 +0900)
src/FukuiNoNamari/HTMLParserEx.py

index 57fafd8..c6c6667 100644 (file)
@@ -74,6 +74,8 @@ class HTMLParserEx(HTMLParser.HTMLParser):
                     k = self.parse_pi(i)
                 elif startswith("<!", i):
                     k = self.parse_declaration(i)
+                else:
+                    k = -1
 
                 if k < 0: # not terminated, out simply.
                     self.handle_data("<")