graph_t *g;
} htmlenv_t;
+#define DEBUG 1
#ifdef DEBUG
static void printCell(htmlcell_t * cp, int ind);
#endif
}
halfwidth_x = ((double)(tp->box.UR.x - tp->box.LL.x))/2.0;
- p.x = env->p.x;
+ p.x = env->p.x + ((double)(tp->box.UR.x + tp->box.LL.x))/2.0;
p.y = env->p.y + ((double)(tp->box.UR.y + tp->box.LL.y))/2.0;
emit_textlines(job, tp->nlines, tp->line, p,
fprintf(stderr, "(%d,%d)(%d,%d)", b.LL.x, b.LL.y, b.UR.x, b.UR.y);
}
-void printImage(char *tp, int ind)
+void printImage(htmlimg_t *ip, int ind)
{
- int i;
indent(ind);
- fprintf(stderr, "img: %s\n", tp);
+ fprintf(stderr, "img: %s\n", ip->src);
}
void printTxt(htmltxt_t * tp, int ind)