aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'table.c')
-rw-r--r--table.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/table.c b/table.c
index 45f77fe..528398c 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.18 2002/01/28 14:42:30 ukai Exp $ */
+/* $Id: table.c,v 1.19 2002/01/31 17:54:56 ukai Exp $ */
/*
* HTML table
*/
@@ -2786,7 +2786,22 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
mode->pre_mode &= ~TBLM_PRE_INT;
break;
case HTML_IMG:
- tok = process_img(tag);
+ w = tbl->fixed_width[tbl->col];
+ if (w < 0) {
+ if (tbl->total_width > 0)
+ w = -tbl->total_width * w / 100;
+ else if (width > 0)
+ w = -width * w / 100;
+ else
+ w = 0;
+ }
+ else if (w == 0) {
+ if (tbl->total_width > 0)
+ w = tbl->total_width;
+ else if (width > 0)
+ w = width;
+ }
+ tok = process_img(tag, w);
feed_table1(tbl, tok, mode, width);
break;
case HTML_FORM: