+ }
+ switch (dp->layout->pos) {
+ case TBL_CELL_CENTRE:
+ halign = "center";
+ break;
+ case TBL_CELL_RIGHT:
+ case TBL_CELL_NUMBER:
+ halign = "right";
+ break;
+ default:
+ halign = NULL;
+ break;
+ }
+ if (dp->layout->flags & TBL_CELL_TALIGN)
+ valign = "top";
+ else if (dp->layout->flags & TBL_CELL_BALIGN)
+ valign = "bottom";
+ else
+ valign = NULL;
+ if (halign == NULL && valign == NULL)
+ print_otag(h, TAG_TD, "");
+ else if (halign == NULL)
+ print_otag(h, TAG_TD, "s",
+ "vertical-align", valign);
+ else if (valign == NULL)
+ print_otag(h, TAG_TD, "s",
+ "text-align", halign);
+ else
+ print_otag(h, TAG_TD, "ss",
+ "vertical-align", valign,
+ "text-align", halign);