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

Diff for /mandoc/tbl_layout.c between version 1.7 and 1.9

version 1.7, 2011/01/02 12:04:23 version 1.9, 2011/01/03 13:59:21
Line 294  cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e
Line 294  cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e
          * ones.           * ones.
          */           */
   
         h = pp ? pp->head->prev : tbl->first_head;          h = pp ? pp->head->next : tbl->first_head;
   
         if (h) {          if (h) {
                 /* Re-use data header. */                  /* Re-use data header. */
Line 319  cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e
Line 319  cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e
                                 (TBL_CELL_VERT == p->pos ||                                  (TBL_CELL_VERT == p->pos ||
                                  TBL_CELL_DVERT == p->pos)) {                                   TBL_CELL_DVERT == p->pos)) {
                         hp = mandoc_calloc(1, sizeof(struct tbl_head));                          hp = mandoc_calloc(1, sizeof(struct tbl_head));
                           hp->ident = tbl->opts.cols++;
                         hp->prev = h->prev;                          hp->prev = h->prev;
                         if (h->prev)                          if (h->prev)
                                 h->prev->next = hp;                                  h->prev->next = hp;
Line 341  cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e
Line 342  cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, e
         }          }
   
         hp = mandoc_calloc(1, sizeof(struct tbl_head));          hp = mandoc_calloc(1, sizeof(struct tbl_head));
           hp->ident = tbl->opts.cols++;
   
         if (tbl->last_head) {          if (tbl->last_head) {
                 hp->prev = tbl->last_head;                  hp->prev = tbl->last_head;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.9

CVSweb