mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
IMHO line_break should fill lines with spaces. This is done for <pre>.
See glib documentation in 256 colors for the difference. Some lines are 1 space longer. I have no idea how to level them.
This commit is contained in:
parent
c240908071
commit
d19dcaa3e7
@ -1415,6 +1415,7 @@ line_break(struct html_context *html_context)
|
||||
{
|
||||
struct part *part;
|
||||
struct tag *tag;
|
||||
int i;
|
||||
|
||||
assert(html_context);
|
||||
if_assert_failed return;
|
||||
@ -1444,7 +1445,13 @@ line_break(struct html_context *html_context)
|
||||
part->cx--;
|
||||
}
|
||||
|
||||
if (part->cx > 0) align_line(html_context, part->cy, 1);
|
||||
if (part->cx > 0) align_line(html_context, part->cy, 1);\
|
||||
/* This change is visible only for glib, gtk, gnome docs in 256 colors */
|
||||
if (html_is_preformatted()) {
|
||||
for (i = part->cx ; i < part->document->options.box.width; i++) {
|
||||
put_chars(html_context, " ", 1);
|
||||
}
|
||||
}
|
||||
|
||||
for (tag = renderer_context.last_tag_for_newline;
|
||||
tag && tag != (struct tag *) &part->document->tags;
|
||||
|
Loading…
x
Reference in New Issue
Block a user