[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.53 and 1.54

version 1.53, 2013/10/07 22:22:10 version 1.54, 2013/12/24 20:45:27
Line 705  static int
Line 705  static int
 pre_sect(DECL_ARGS)  pre_sect(DECL_ARGS)
 {  {
   
         switch (n->type) {          if (MDOC_HEAD == n->type) {
         case (MDOC_HEAD):  
                 outflags |= MMAN_sp;                  outflags |= MMAN_sp;
                 print_block(manacts[n->tok].prefix, 0);                  print_block(manacts[n->tok].prefix, 0);
                 print_word("");                  print_word("");
                 putchar('\"');                  putchar('\"');
                 outflags &= ~MMAN_spc;                  outflags &= ~MMAN_spc;
                 break;  
         case (MDOC_BODY):  
                 if (MDOC_Sh == n->tok) {  
                         if (MDOC_SYNPRETTY & n->flags)  
                                 outflags |= MMAN_Bk;  
                         else  
                                 outflags &= ~MMAN_Bk;  
                 }  
                 break;  
         default:  
                 break;  
         }          }
         return(1);          return(1);
 }  }
Line 900  static void
Line 888  static void
 post_bk(DECL_ARGS)  post_bk(DECL_ARGS)
 {  {
   
         if (MDOC_BODY == n->type && ! (MDOC_SYNPRETTY & n->flags))          if (MDOC_BODY == n->type)
                 outflags &= ~MMAN_Bk;                  outflags &= ~MMAN_Bk;
 }  }
   
Line 1408  pre_nm(DECL_ARGS)
Line 1396  pre_nm(DECL_ARGS)
 {  {
         char    *name;          char    *name;
   
         if (MDOC_BLOCK == n->type)          if (MDOC_BLOCK == n->type) {
                   outflags |= MMAN_Bk;
                 pre_syn(n);                  pre_syn(n);
           }
         if (MDOC_ELEM != n->type && MDOC_HEAD != n->type)          if (MDOC_ELEM != n->type && MDOC_HEAD != n->type)
                 return(1);                  return(1);
         name = n->child ? n->child->string : meta->name;          name = n->child ? n->child->string : meta->name;
Line 1432  static void
Line 1422  static void
 post_nm(DECL_ARGS)  post_nm(DECL_ARGS)
 {  {
   
         if (MDOC_ELEM != n->type && MDOC_HEAD != n->type)          switch (n->type) {
                 return;          case (MDOC_BLOCK):
         font_pop();                  outflags &= ~MMAN_Bk;
                   break;
           case (MDOC_HEAD):
                   /* FALLTHROUGH */
           case (MDOC_ELEM):
                   font_pop();
                   break;
           default:
                   break;
           }
 }  }
   
 static int  static int

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

CVSweb