issues with htmlparser.getpos

dysmas dysmas at gmail.com
Wed Jul 4 07:34:07 EDT 2007


Hi,


Im having an issue with HTMLParser, the getpos() funtion sometimes
returns things like :

(1, 1247)
(1, 2114)
(1, 2168)
(1, 2228)
(1, 2295)
(1, 2382)
(1, 2441)
(1, 2963)
(1, 3040)

i guess this is because the HTMLParser has not correctly parsed the
newline characters in the string fed to it... is there a workaround
for this, without checking the string every time i feed it some data?




More information about the Python-list mailing list