From: Bob D. <bd...@si...> - 2005-07-13 14:13:39
|
Applied! Ty! On Fri, 2005-07-08 at 14:14 -0300, Everton Luis Berz wrote: > Follow my patch to enable width and height on IMG tag (HTML ouput). > > > plain text document attachment > (rlib-html_img_src_width_height_patch.txt) > Index: libsrc/html.c > =================================================================== > RCS file: /cvsroot/rlib/rlib/libsrc/html.c,v > retrieving revision 1.60 > diff -u -r1.60 html.c > --- libsrc/html.c 27 Jun 2005 16:45:48 -0000 1.60 > +++ libsrc/html.c 8 Jul 2005 17:12:05 -0000 > @@ -286,7 +286,7 @@ > gchar buf[MAXSTRLEN]; > > print_text(r, "<DIV>", FALSE); > - sprintf(buf, "<img src=\"%s\">", nname); > + sprintf(buf, "<img src=\"%s\" width=\"%f\" height=\"%f\">", nname, nwidth, nheight); > print_text(r, buf, FALSE); > print_text(r, "</DIV>", FALSE); > } |