mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05: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;
|
||||
repl = preformat ? &pre_start : &pre_end;
|
||||
el_string_replace(&html, &line, &gem_pre, repl);
|
||||
if (preformat) {
|
||||
add_char_to_string(&html, '\n');
|
||||
}
|
||||
} else if (preformat) {
|
||||
add_string_to_string(&html, &line);
|
||||
add_char_to_string(&html, '\n');
|
||||
|
Loading…
Reference in New Issue
Block a user