Lines Matching defs:sp
61 term_tbl(struct termp *tp, const struct tbl_span *sp)
89 tblcalc(&tp->tbl, sp, rmargin - tp->offset);
94 if (sp->opts->opts & TBL_OPT_CENTRE) {
95 tsz = sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX)
96 ? 2 : !!sp->opts->lvert + !!sp->opts->rvert;
97 for (ic = 0; ic < sp->opts->cols; ic++)
108 if (sp->opts->opts & TBL_OPT_DBOX)
109 tbl_hrule(tp, sp, 2);
110 if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX))
111 tbl_hrule(tp, sp, 1);
116 horiz = sp->pos == TBL_SPAN_HORIZ || sp->pos == TBL_SPAN_DHORIZ;
118 if (sp->layout->vert ||
119 (sp->prev != NULL && sp->prev->layout->vert) ||
120 sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX))
122 else if (sp->opts->lvert)
130 if (sp->pos == TBL_SPAN_DATA) {
131 cp = sp->layout->first;
132 dp = sp->first;
134 for (ic = 0; ic < sp->opts->cols; ic++) {
148 tbl_data(tp, sp->opts, dp, tp->tbl.cols + ic);
163 if (ic + 1 == sp->opts->cols || spans)
173 tbl_hrule(tp, sp, 0);
177 if (sp->layout->last->vert ||
178 (sp->prev != NULL && sp->prev->layout->last->vert) ||
179 (sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX)))
181 else if (sp->opts->rvert)
190 if (sp->next == NULL) {
191 if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX)) {
192 tbl_hrule(tp, sp, 1);
195 if (sp->opts->opts & TBL_OPT_DBOX) {
196 tbl_hrule(tp, sp, 2);
217 tbl_hrule(struct termp *tp, const struct tbl_span *sp, int kind)
223 line = (kind == 0 && TBL_SPAN_DHORIZ == sp->pos) ? '=' : '-';
228 c1 = sp->layout->first;
229 c2 = sp->prev == NULL ? NULL : sp->prev->layout->first;