HI,
In article <Pine.LNX.4.21.0004081649290.546-100000@penguinpowered.com>,
Yi Qiang <w3m-dev-en@mi.med.tohoku.ac.jp> writes:
> Hey, whenever I use w3m-0.1.8 to go to freshmeat.net, or slashdot.org the
> text boxes appear very very small...unlike the previous release, does
> anybody else have this problem?
This is a bug of 0.1.8. Try the following patch.
-- Akinori Ito, Ph.D. Department of Informatics, Faculty of Engineering Yamagata University tel&fax: 0238-26-3369 E-mail: aito@eie.yz.yamagata-u.ac.jp--- table.c Thu Apr 06 10:25:00 2000 +++ table.c.new Sat Apr 08 20:51:14 2000 @@ -684,6 +684,22 @@ Strcat_charp(buf,"<eol>"); } +static int +get_spec_cell_width(struct table *tbl, int row, int col) +{ + int i,w; + + w = tbl->tabwidth[col]; + for (i = col+1; i <= tbl->maxcol; i++) { + check_row(tbl,row); + if (tbl->tabattr[row][i] & HTT_X) + w += tbl->tabwidth[i] + tbl->cellspacing; + else + break; + } + return w; +} + void do_refill(struct table * tbl, int row, int col) { @@ -702,14 +718,7 @@ init_henv(&h_env, &obuf, envs, MAX_ENV_LEVEL, tbl->tabdata[row][col], tbl->tabwidth[col], 0); - for (i = col+1; i <= tbl->maxcol; i++) { - check_row(tbl,row); - if (tbl->tabattr[row][i] & HTT_X) - h_env.limit += tbl->tabwidth[i] + tbl->cellspacing; - else - break; - } - + h_env.limit = get_spec_cell_width(tbl,row,col); for (l = orgdata->first; l != NULL; l = l->next) { if (TAG_IS(l->ptr, "<dummy_table", 12)) { struct parsed_tagarg *t_arg, *t; @@ -1328,7 +1337,8 @@ else if (t->total_width > 0) maxwidth = t->total_width; else - maxwidth = t->total_width = - t->total_width * newwidth[col] / 100; + maxwidth = t->total_width = - t->total_width * + get_spec_cell_width(tbl,row,col) / 100; #else maxwidth = h_env.limit -indent; if (t->total_width > 0) {
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT