[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.32 and 1.33

version 1.32, 2012/07/10 20:37:02 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)
 {  {
   
         outflags |= MMAN_br;          switch (n->norm->Bl.type) {
         if (LIST_enum == 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 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.32  
changed lines
  Added in v.1.33

CVSweb