1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

The RSS document title to channel->title

This commit is contained in:
Jonas Fonseca 2006-01-09 02:18:57 +01:00 committed by Jonas Fonseca
parent 7c80c67759
commit 20bd19e4c5

View File

@ -855,6 +855,9 @@ render_rss_item(struct dom_renderer *renderer, struct dom_node *item)
struct dom_string *date = get_rss_text(item, RSS_ELEMENT_PUBDATE);
if (title && is_dom_string_set(title)) {
if (item == renderer->channel)
renderer->document->title = memacpy(title->string,
title->length);
render_dom_text(renderer, &renderer->styles[DOM_NODE_ELEMENT],
title->string, title->length);
}