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

Diff for /mandoc/tree.c between version 1.79 and 1.80

version 1.79, 2018/08/14 01:27:48 version 1.80, 2018/11/25 19:24:20
Line 379  print_span(const struct tbl_span *sp, int indent)
Line 379  print_span(const struct tbl_span *sp, int indent)
         switch (sp->pos) {          switch (sp->pos) {
         case TBL_SPAN_HORIZ:          case TBL_SPAN_HORIZ:
                 putchar('-');                  putchar('-');
                 return;                  putchar(' ');
                   break;
         case TBL_SPAN_DHORIZ:          case TBL_SPAN_DHORIZ:
                 putchar('=');                  putchar('=');
                 return;                  putchar(' ');
                   break;
         default:          default:
                   for (dp = sp->first; dp; dp = dp->next) {
                           switch (dp->pos) {
                           case TBL_DATA_HORIZ:
                           case TBL_DATA_NHORIZ:
                                   putchar('-');
                                   putchar(' ');
                                   continue;
                           case TBL_DATA_DHORIZ:
                           case TBL_DATA_NDHORIZ:
                                   putchar('=');
                                   putchar(' ');
                                   continue;
                           default:
                                   break;
                           }
                           printf("[\"%s\"", dp->string ? dp->string : "");
                           if (dp->hspans)
                                   printf(">%d", dp->hspans);
                           if (dp->vspans)
                                   printf("v%d", dp->vspans);
                           if (dp->layout == NULL)
                                   putchar('*');
                           else if (dp->layout->pos == TBL_CELL_DOWN)
                                   putchar('^');
                           putchar(']');
                           putchar(' ');
                   }
                 break;                  break;
         }          }
   
         for (dp = sp->first; dp; dp = dp->next) {  
                 switch (dp->pos) {  
                 case TBL_DATA_HORIZ:  
                 case TBL_DATA_NHORIZ:  
                         putchar('-');  
                         continue;  
                 case TBL_DATA_DHORIZ:  
                 case TBL_DATA_NDHORIZ:  
                         putchar('=');  
                         continue;  
                 default:  
                         break;  
                 }  
                 printf("[\"%s\"", dp->string ? dp->string : "");  
                 if (dp->spans)  
                         printf("(%d)", dp->spans);  
                 if (NULL == dp->layout)  
                         putchar('*');  
                 putchar(']');  
                 putchar(' ');  
         }  
   
         printf("(tbl) %d:1\n", sp->line);          printf("(tbl) %d:1\n", sp->line);
 }  }

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

CVSweb