mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Re-order code in a more logical fashion.
This commit is contained in:
parent
2f8ed27eab
commit
d54f76bec8
@ -1929,20 +1929,19 @@ render_html_document(struct cache_entry *cached, struct document *document,
|
|||||||
|
|
||||||
if (!init_string(&head)) return;
|
if (!init_string(&head)) return;
|
||||||
|
|
||||||
renderer_context.g_ctrl_num = 0;
|
if (cached->head) add_to_string(&head, cached->head);
|
||||||
renderer_context.cached = cached;
|
|
||||||
|
|
||||||
start = buffer->source;
|
start = buffer->source;
|
||||||
end = buffer->source + buffer->length;
|
end = buffer->source + buffer->length;
|
||||||
|
|
||||||
if (cached->head) add_to_string(&head, cached->head);
|
|
||||||
|
|
||||||
html_context = init_html_parser(cached->uri, &document->options,
|
html_context = init_html_parser(cached->uri, &document->options,
|
||||||
start, end, &head, &title,
|
start, end, &head, &title,
|
||||||
put_chars_conv, line_break,
|
put_chars_conv, line_break,
|
||||||
html_special);
|
html_special);
|
||||||
if (!html_context) return;
|
if (!html_context) return;
|
||||||
|
|
||||||
|
renderer_context.g_ctrl_num = 0;
|
||||||
|
renderer_context.cached = cached;
|
||||||
renderer_context.convert_table = get_convert_table(head.source,
|
renderer_context.convert_table = get_convert_table(head.source,
|
||||||
document->options.cp,
|
document->options.cp,
|
||||||
document->options.assume_cp,
|
document->options.assume_cp,
|
||||||
|
Loading…
Reference in New Issue
Block a user