1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-03 03:56:32 -04: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:
Witold Filipczyk 2006-05-26 19:59:20 +02:00 committed by Witold Filipczyk
parent c240908071
commit d19dcaa3e7

View File

@ -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;