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

Diff for /mandoc/mdoc_man.c between version 1.31 and 1.33

version 1.31, 2012/07/10 19:54:11 version 1.33, 2012/07/11 16:19:08
Line 754  post_bk(DECL_ARGS)
Line 754  post_bk(DECL_ARGS)
 static int  static int
 pre_bl(DECL_ARGS)  pre_bl(DECL_ARGS)
 {  {
           size_t           icol;
   
         if (LIST_enum == n->norm->Bl.type)          switch (n->norm->Bl.type) {
           case (LIST_enum):
                 n->norm->Bl.count = 0;                  n->norm->Bl.count = 0;
                   return(1);
           case (LIST_column):
                   break;
           default:
                   return(1);
           }
   
           outflags |= MMAN_nl;
           print_word(".TS");
           outflags |= MMAN_nl;
           for (icol = 0; icol < n->norm->Bl.ncols; icol++)
                   print_word("l");
           print_word(".");
         return(1);          return(1);
 }  }
   
Line 764  static void
Line 779  static void
 post_bl(DECL_ARGS)  post_bl(DECL_ARGS)
 {  {
   
         if (LIST_enum == n->norm->Bl.type)          switch (n->norm->Bl.type) {
           case (LIST_enum):
                 n->norm->Bl.count = 0;                  n->norm->Bl.count = 0;
                   break;
           case (LIST_column):
                   outflags |= MMAN_nl;
                   print_word(".TE");
                   break;
           default:
                   break;
           }
           outflags |= MMAN_br;
 }  }
   
 static int  static int
Line 1052  pre_it(DECL_ARGS)
Line 1077  pre_it(DECL_ARGS)
                         print_width(bln->norm->Bl.width, NULL);                          print_width(bln->norm->Bl.width, NULL);
                         outflags |= MMAN_nl;                          outflags |= MMAN_nl;
                         print_count(&bln->norm->Bl.count);                          print_count(&bln->norm->Bl.count);
                         outflags |= MMAN_nl;  
                         break;                          break;
                 case (LIST_hang):                  case (LIST_hang):
                         print_width(bln->norm->Bl.width, n->child);                          print_width(bln->norm->Bl.width, n->child);
                         outflags |= MMAN_nl;  
                         break;                          break;
                 default:                  case (LIST_tag):
                         if (bln->norm->Bl.width)                          print_width(bln->norm->Bl.width, NULL);
                                 print_width(bln->norm->Bl.width, n->child);  
                         break;                          break;
                   default:
                           return(1);
                 }                  }
                 outflags |= MMAN_nl;                  outflags |= MMAN_nl;
         default:          default:
Line 1075  post_it(DECL_ARGS)
Line 1099  post_it(DECL_ARGS)
 {  {
         const struct mdoc_node *bln;          const struct mdoc_node *bln;
   
         if (MDOC_HEAD == n->type) {          bln = n->parent->parent;
                 bln = n->parent->parent;  
           switch (n->type) {
           case (MDOC_HEAD):
                 switch (bln->norm->Bl.type) {                  switch (bln->norm->Bl.type) {
                 case (LIST_diag):                  case (LIST_diag):
                         outflags &= ~MMAN_spc;                          outflags &= ~MMAN_spc;
Line 1088  post_it(DECL_ARGS)
Line 1114  post_it(DECL_ARGS)
                 default:                  default:
                         break;                          break;
                 }                  }
                   break;
           case (MDOC_BODY):
                   if (LIST_column == bln->norm->Bl.type &&
                       NULL != n->next) {
                           putchar('\t');
                           outflags &= ~MMAN_spc;
                   }
                   break;
           default:
                   break;
         }          }
 }  }
   

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.33

CVSweb