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

Diff for /mandoc/mdoc_html.c between version 1.80 and 1.83

version 1.80, 2010/06/12 11:21:44 version 1.83, 2010/06/12 12:38:01
Line 1035  mdoc_it_pre(MDOC_ARGS)
Line 1035  mdoc_it_pre(MDOC_ARGS)
         if (MDOC_BLOCK != n->type)          if (MDOC_BLOCK != n->type)
                 bl = bl->parent;                  bl = bl->parent;
   
         type = bl->data.list;          SCALE_HS_INIT(&offs, 0);
   
         /* Set default width and offset. */          type = bl->data.Bl.type;
           comp = bl->data.Bl.comp;
   
         SCALE_HS_INIT(&offs, 0);          if (bl->data.Bl.offs)
                   a2offs(bl->data.Bl.offs, &offs);
   
         switch (type) {          switch (type) {
         case (LIST_enum):          case (LIST_enum):
Line 1056  mdoc_it_pre(MDOC_ARGS)
Line 1058  mdoc_it_pre(MDOC_ARGS)
                 break;                  break;
         }          }
   
         /* Get width, offset, and compact arguments. */  
   
         wp = -1;          wp = -1;
         for (comp = i = 0; bl->args && i < (int)bl->args->argc; i++)          for (i = 0; bl->args && i < (int)bl->args->argc; i++)
                 switch (bl->args->argv[i].arg) {                  switch (bl->args->argv[i].arg) {
                 case (MDOC_Column):                  case (MDOC_Column):
                         wp = i; /* Save for later. */                          wp = i; /* Save for later. */
Line 1067  mdoc_it_pre(MDOC_ARGS)
Line 1067  mdoc_it_pre(MDOC_ARGS)
                 case (MDOC_Width):                  case (MDOC_Width):
                         a2width(bl->args->argv[i].value[0], &width);                          a2width(bl->args->argv[i].value[0], &width);
                         break;                          break;
                 case (MDOC_Offset):  
                         a2offs(bl->args->argv[i].value[0], &offs);  
                         break;  
                 case (MDOC_Compact):  
                         comp = 1;  
                         break;  
                 default:                  default:
                         break;                          break;
                 }                  }
Line 1123  mdoc_bl_pre(MDOC_ARGS)
Line 1117  mdoc_bl_pre(MDOC_ARGS)
                 return(0);                  return(0);
         if (MDOC_BLOCK != n->type)          if (MDOC_BLOCK != n->type)
                 return(1);                  return(1);
         if (LIST_enum != n->data.list)          if (LIST_enum != n->data.Bl.type)
                 return(1);                  return(1);
   
         ord = malloc(sizeof(struct ord));          ord = malloc(sizeof(struct ord));
Line 1147  mdoc_bl_post(MDOC_ARGS)
Line 1141  mdoc_bl_post(MDOC_ARGS)
   
         if (MDOC_BLOCK != n->type)          if (MDOC_BLOCK != n->type)
                 return;                  return;
         if (LIST_enum != n->data.list)          if (LIST_enum != n->data.Bl.type)
                 return;                  return;
   
         ord = h->ords.head;          ord = h->ords.head;

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.83

CVSweb