mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[gemini] Changes to see labirynth
This commit is contained in:
parent
d237b06511
commit
dc9b4bed04
@ -165,6 +165,7 @@ render_gemini_document(struct cache_entry *cached, struct document *document,
|
|||||||
string_replace(&html, &line, &gem_pre, repl);
|
string_replace(&html, &line, &gem_pre, repl);
|
||||||
} else if (preformat) {
|
} else if (preformat) {
|
||||||
add_string_to_string(&html, &line);
|
add_string_to_string(&html, &line);
|
||||||
|
add_char_to_string(&html, '\n');
|
||||||
} else {
|
} else {
|
||||||
struct string html_line;
|
struct string html_line;
|
||||||
|
|
||||||
@ -189,7 +190,7 @@ render_gemini_document(struct cache_entry *cached, struct document *document,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
begin = i + 1;
|
begin = i + 1;
|
||||||
add_to_string(&html, "\n");
|
if (!preformat) add_to_string(&html, "\n");
|
||||||
}
|
}
|
||||||
add_to_string(&html, "</body></html>");
|
add_to_string(&html, "</body></html>");
|
||||||
|
|
||||||
|
@ -313,8 +313,8 @@ again:
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_string(&head_string);
|
init_string(&head_string);
|
||||||
add_to_string(&head_string, "\nContent-Type:");
|
add_to_string(&head_string, "\nContent-Type: ");
|
||||||
add_bytes_to_string(&head_string, rb->data + 2, a);
|
add_bytes_to_string(&head_string, rb->data + 3, a - 2);
|
||||||
|
|
||||||
if (!conn->cached) {
|
if (!conn->cached) {
|
||||||
done_string(&head_string);
|
done_string(&head_string);
|
||||||
|
Loading…
Reference in New Issue
Block a user