From 66e293065df8f46ee69a9ca65399375919762584 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Sun, 21 Oct 2007 07:51:59 -0400 Subject: [PATCH] Deal with Typepad's current Atom feeds --- planet/vendor/feedparser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/planet/vendor/feedparser.py b/planet/vendor/feedparser.py index 9244646..663b789 100755 --- a/planet/vendor/feedparser.py +++ b/planet/vendor/feedparser.py @@ -502,6 +502,7 @@ class _FeedParserMixin: # track inline content if self.incontent and self.contentparams.has_key('type') and not self.contentparams.get('type', 'xml').endswith('xml'): + if tag in ['xhtml:div', 'div']: return # typepad does this 10/2007 # element declared itself as escaped markup, but it isn't really self.contentparams['type'] = 'application/xhtml+xml' if self.incontent and self.contentparams.get('type') == 'application/xhtml+xml': @@ -569,6 +570,7 @@ class _FeedParserMixin: # track inline content if self.incontent and self.contentparams.has_key('type') and not self.contentparams.get('type', 'xml').endswith('xml'): # element declared itself as escaped markup, but it isn't really + if tag in ['xhtml:div', 'div']: return # typepad does this 10/2007 self.contentparams['type'] = 'application/xhtml+xml' if self.incontent and self.contentparams.get('type') == 'application/xhtml+xml': tag = tag.split(':')[-1]