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:
parent
7c80c67759
commit
20bd19e4c5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user