Wait for title tag with data if there are multiple title tags.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
Arun Prakash Jana 2015-11-10 23:29:46 -08:00
parent d7346c8bda
commit 45bc1b5976

2
markit
View File

@ -378,7 +378,7 @@ class BMHTMLParser(HTMLParser.HTMLParser):
if tag == "title":
self.inTitle = False
if self.data != None:
if self.data != "":
titleData = self.data
self.reset() # We have received title data, exit parsing