mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-23 07:20:10 -04:00
[blockquote] Added condition for y. Refs #112
This commit is contained in:
parent
172184aed5
commit
b4045ef864
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user