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

Diff for /mandoc/tree.c between version 1.30 and 1.32

version 1.30, 2011/01/02 20:34:05 version 1.32, 2011/01/10 14:40:30
Line 249  static void
Line 249  static void
 print_span(const struct tbl_span *sp, int indent)  print_span(const struct tbl_span *sp, int indent)
 {  {
         const struct tbl_dat *dp;          const struct tbl_dat *dp;
         const struct tbl_head *hp;  
         int              i;          int              i;
   
         if (TBL_SPAN_FIRST & sp->flags) {  
                 for (i = 0; i < indent; i++)  
                         putchar('\t');  
                 printf("tbl-head: ");  
                 for (hp = sp->head; hp; hp = hp->next) {  
                         printf("[%d]", hp->width);  
                         if (hp->next)  
                                 putchar(' ');  
                 }  
                 putchar('\n');  
         }  
   
         for (i = 0; i < indent; i++)          for (i = 0; i < indent; i++)
                 putchar('\t');                  putchar('\t');
   
Line 295  print_span(const struct tbl_span *sp, int indent)
Line 282  print_span(const struct tbl_span *sp, int indent)
                 default:                  default:
                         break;                          break;
                 }                  }
                 printf("[%s%s]", dp->string, dp->layout ?  "" : "*");                  printf("[\"%s\"", dp->string ? dp->string : "");
                   if (dp->spans)
                           printf("(%d)", dp->spans);
                   if (NULL == dp->layout)
                           putchar('*');
                   putchar(']');
                 if (dp->next)                  if (dp->next)
                         putchar(' ');                          putchar(' ');
         }          }

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.32

CVSweb