mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[blockquote] Prefix also caption. Added draw_blockquote_chars. Refs #103
This commit is contained in:
parent
bb01193671
commit
602290b73b
@ -342,6 +342,25 @@ draw_frame_hchars(struct part *part, int x, int y, int width,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
draw_blockquote_chars(struct part *part, int y, struct html_context *html_context)
|
||||||
|
{
|
||||||
|
if (par_format.blockquote_level) {
|
||||||
|
int i;
|
||||||
|
int x = par_format.orig_leftmargin;
|
||||||
|
struct screen_char *const schar = get_format_screen_char(html_context, 0);
|
||||||
|
|
||||||
|
schar->data = '>';
|
||||||
|
for (i = 1; i < par_format.blockquote_level; i++) {
|
||||||
|
copy_screen_chars(&POS(x, y), schar, 1);
|
||||||
|
part->char_width[x++] = 1;
|
||||||
|
}
|
||||||
|
schar->data = ' ';
|
||||||
|
copy_screen_chars(&POS(x, y), schar, 1);
|
||||||
|
part->char_width[x++] = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
draw_frame_vchars(struct part *part, int x, int y, int height,
|
draw_frame_vchars(struct part *part, int x, int y, int height,
|
||||||
unsigned char data, color_T bgcolor, color_T fgcolor,
|
unsigned char data, color_T bgcolor, color_T fgcolor,
|
||||||
|
@ -66,6 +66,7 @@ void expand_lines(struct html_context *html_context, struct part *part,
|
|||||||
int x, int y, int lines, color_T bgcolor);
|
int x, int y, int lines, color_T bgcolor);
|
||||||
void check_html_form_hierarchy(struct part *part);
|
void check_html_form_hierarchy(struct part *part);
|
||||||
|
|
||||||
|
void draw_blockquote_chars(struct part *part, int y, struct html_context *html_context);
|
||||||
void draw_frame_hchars(struct part *, int, int, int, unsigned char data, color_T bgcolor, color_T fgcolor, struct html_context *html_context);
|
void draw_frame_hchars(struct part *, int, int, int, unsigned char data, color_T bgcolor, color_T fgcolor, struct html_context *html_context);
|
||||||
void draw_frame_vchars(struct part *, int, int, int, unsigned char data, color_T bgcolor, color_T fgcolor, struct html_context *html_context);
|
void draw_frame_vchars(struct part *, int, int, int, unsigned char data, color_T bgcolor, color_T fgcolor, struct html_context *html_context);
|
||||||
|
|
||||||
|
@ -1226,6 +1226,14 @@ draw_table_caption(struct html_context *html_context, struct table *table,
|
|||||||
|
|
||||||
if (!part) return;
|
if (!part) return;
|
||||||
|
|
||||||
|
if (par_format.blockquote_level) {
|
||||||
|
int yy;
|
||||||
|
|
||||||
|
for (yy = 0; yy < part->box.height; yy++) {
|
||||||
|
draw_blockquote_chars(table->part, y + yy, html_context);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
table->part->cy += part->box.height;
|
table->part->cy += part->box.height;
|
||||||
table->part->cx = -1;
|
table->part->cx = -1;
|
||||||
table->part->link_num = part->link_num;
|
table->part->link_num = part->link_num;
|
||||||
|
Loading…
Reference in New Issue
Block a user