mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
[gmi] Add a new line after the first line of "preformatted" text. Refs #265
This commit is contained in:
parent
e5ad52fc57
commit
e0a125f112
@ -165,6 +165,9 @@ render_gemini_document(struct cache_entry *cached, struct document *document,
|
|||||||
preformat = !preformat;
|
preformat = !preformat;
|
||||||
repl = preformat ? &pre_start : &pre_end;
|
repl = preformat ? &pre_start : &pre_end;
|
||||||
el_string_replace(&html, &line, &gem_pre, repl);
|
el_string_replace(&html, &line, &gem_pre, repl);
|
||||||
|
if (preformat) {
|
||||||
|
add_char_to_string(&html, '\n');
|
||||||
|
}
|
||||||
} else if (preformat) {
|
} else if (preformat) {
|
||||||
add_string_to_string(&html, &line);
|
add_string_to_string(&html, &line);
|
||||||
add_char_to_string(&html, '\n');
|
add_char_to_string(&html, '\n');
|
||||||
|
Loading…
Reference in New Issue
Block a user