Fix bug in implementation of markupMassage in BeautifulSoup 3.0.5. This affects everything, so I hope there aren't too many regressions.

This commit is contained in:
Kovid Goyal 2008-01-29 03:17:25 +00:00
parent 9699b9311d
commit bac6acb7a2

View File

@ -1094,8 +1094,9 @@ class BeautifulStoneSoup(Tag, SGMLParser):
# was relying on the existence of markupMassage, this
# might cause problems.
del(self.markupMassage)
self.markup = markup
self.reset()
SGMLParser.feed(self, markup)
# Close out any unfinished strings and close all the open tags.
self.endData()