1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Merge pull request #267 from hedyhli/master

[gemini] Use paragraph tags on gemtext empty lines
This commit is contained in:
rkd77 2023-09-28 10:38:26 +02:00 committed by GitHub
commit e781466cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,10 @@ render_gemini_document(struct cache_entry *cached, struct document *document,
if (buffer->source[i] == 13 || buffer->source[i] == 10) break;
}
if (begin == i) {
add_to_string(&html, "</p><p>");
}
if (begin < i) {
int len = i - begin;