1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-26 02:46:13 -04:00

[blockquote] Added condition for y. Refs #112

This commit is contained in:
Witold Filipczyk 2021-03-25 18:18:17 +01:00
parent 172184aed5
commit b4045ef864

View File

@ -338,6 +338,10 @@ draw_blockquote_chars(struct part *part, int y, struct html_context *html_contex
int x = par_format.orig_leftmargin;
struct screen_char *const schar = get_format_screen_char(html_context, 0);
if (y > part->box.height) {
return;
}
schar->data = '>';
for (i = 1; i < par_format.blockquote_level; i++) {
copy_screen_chars(&POS(x, y), schar, 1);
@ -383,7 +387,7 @@ expand_lines(struct html_context *html_context, struct part *part,
par_format.color.background = bgcolor;
for (line = 0; line < lines; line++) {
realloc_line(html_context, part->document, Y(y + line), X(x));
if (realloc_line(html_context, part->document, Y(y + line), X(x))) return;
if (par_format.blockquote_level) {
draw_blockquote_chars(part, y + line, html_context);