Takeshi Matsuyama <tksmas...@gmail.com> added the comment: >From msg80438 >You should reset it by self.data = '' at end_element().
It seems that we should reset it at start_element() like this, ============================ def start_element(self, name, attrs): ...abbr... if name == 'link': self.data = '' ============================= or unwanted \s, \t, and \n mix in "self.data". That's all, thanks. _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5036> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com