[BACK]Return to tbl_term.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/tbl_term.c between version 1.47 and 1.50

version 1.47, 2017/06/12 19:05:47 version 1.50, 2017/06/12 22:49:16
Line 87  term_tbl(struct termp *tp, const struct tbl_span *sp)
Line 87  term_tbl(struct termp *tp, const struct tbl_span *sp)
                 tp->tbl.sulen = term_tbl_sulen;                  tp->tbl.sulen = term_tbl_sulen;
                 tp->tbl.arg = tp;                  tp->tbl.arg = tp;
   
                 tblcalc(&tp->tbl, sp, tp->tcol->rmargin - tp->tcol->offset);                  tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin);
   
                 /* Center the table as a whole. */                  /* Center the table as a whole. */
   
Line 242  term_tbl(struct termp *tp, const struct tbl_span *sp)
Line 242  term_tbl(struct termp *tp, const struct tbl_span *sp)
                                         cp = cp->next;                                          cp = cp->next;
                                 } else                                  } else
                                         vert = 0;                                          vert = 0;
                                   if (vert == 0 &&
                                       sp->opts->opts & TBL_OPT_ALLBOX)
                                           vert = 1;
                                 if (vert == 0)                                  if (vert == 0)
                                         continue;                                          continue;
   
Line 300  term_tbl(struct termp *tp, const struct tbl_span *sp)
Line 303  term_tbl(struct termp *tp, const struct tbl_span *sp)
                 free(tp->tbl.cols);                  free(tp->tbl.cols);
                 tp->tbl.cols = NULL;                  tp->tbl.cols = NULL;
                 tp->tcol->offset = offset;                  tp->tcol->offset = offset;
         }          } else if (horiz == 0 && sp->opts->opts & TBL_OPT_ALLBOX &&
               (sp->next == NULL || sp->next->pos == TBL_SPAN_DATA ||
                sp->next->next != NULL))
                   tbl_hrule(tp, sp, 1);
   
         tp->flags &= ~TERMP_NONOSPACE;          tp->flags &= ~TERMP_NONOSPACE;
 }  }
   
Line 336  tbl_hrule(struct termp *tp, const struct tbl_span *sp,
Line 343  tbl_hrule(struct termp *tp, const struct tbl_span *sp,
                                 vert = c2->vert;                                  vert = c2->vert;
                         c2 = c2->next;                          c2 = c2->next;
                 }                  }
                   if (sp->opts->opts & TBL_OPT_ALLBOX && !vert)
                           vert = 1;
                 if (vert)                  if (vert)
                         tbl_char(tp, cross, vert);                          tbl_char(tp, cross, vert);
                 if (vert < 2)                  if (vert < 2)

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.50

CVSweb