From 883007c05d323b032fa91b7b838aa7a962e8be55 Mon Sep 17 00:00:00 2001 From: Dale Whittaker Date: Sun, 16 Aug 2009 23:33:21 +0200 Subject: [PATCH] Catch another case of feed markup not being converted to text --- extensions/feed-panel/feed-parse.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extensions/feed-panel/feed-parse.c b/extensions/feed-panel/feed-parse.c index 1c2cd3f3..e2931b7c 100644 --- a/extensions/feed-panel/feed-parse.c +++ b/extensions/feed-panel/feed-parse.c @@ -29,7 +29,6 @@ feed_get_element_string (FeedParser* fparser) */ return g_strdup (" "); } - return (gchar*)xmlNodeListGetString (fparser->doc, node->children, 1); } @@ -74,6 +73,14 @@ gchar* feed_get_element_markup (FeedParser* fparser) { gchar* markup; + xmlNodePtr node = fparser->node; + + if (node->children && + !xmlIsBlankNode (node->children) && + node->children->type == XML_ELEMENT_NODE) + { + return (gchar*) xmlNodeGetContent (node->children); + } markup = feed_get_element_string (fparser); return feed_remove_markup (markup); -- 2.39.5