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

Diff for /mandoc/man_term.c between version 1.109 and 1.110

version 1.109, 2011/05/17 14:38:34 version 1.110, 2011/06/18 17:36:52
Line 791  post_SH(DECL_ARGS)
Line 791  post_SH(DECL_ARGS)
         }          }
 }  }
   
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  static int
 pre_RS(DECL_ARGS)  pre_RS(DECL_ARGS)
 {  {
         const struct man_node   *nn;          int              ival;
         int                      ival;          size_t           sz;
   
         switch (n->type) {          switch (n->type) {
         case (MAN_BLOCK):          case (MAN_BLOCK):
Line 809  pre_RS(DECL_ARGS)
Line 808  pre_RS(DECL_ARGS)
                 break;                  break;
         }          }
   
         if (NULL == (nn = n->parent->head->child)) {          sz = term_len(p, INDENT);
                 mt->offset = mt->lmargin + term_len(p, INDENT);  
                 p->offset = mt->offset;  
                 return(1);  
         }  
   
         if ((ival = a2width(p, nn->string)) < 0)          if (NULL != (n = n->parent->head->child))
                 return(1);                  if ((ival = a2width(p, n->string)) >= 0)
                           sz = (size_t)ival;
   
         mt->offset = term_len(p, INDENT) + (size_t)ival;          mt->offset += sz;
         p->offset = mt->offset;          p->offset = mt->offset;
   
         return(1);          return(1);
 }  }
   
   
 /* ARGSUSED */  /* ARGSUSED */
 static void  static void
 post_RS(DECL_ARGS)  post_RS(DECL_ARGS)
 {  {
           int              ival;
           size_t           sz;
   
         switch (n->type) {          switch (n->type) {
         case (MAN_BLOCK):          case (MAN_BLOCK):
                 mt->offset = mt->lmargin = term_len(p, INDENT);                  return;
                 break;  
         case (MAN_HEAD):          case (MAN_HEAD):
                 break;                  return;
         default:          default:
                 term_newln(p);                  term_newln(p);
                 p->offset = term_len(p, INDENT);  
                 break;                  break;
         }          }
 }  
   
           sz = term_len(p, INDENT);
   
           if (NULL != (n = n->parent->head->child))
                   if ((ival = a2width(p, n->string)) >= 0)
                           sz = (size_t)ival;
   
           mt->offset = mt->offset < sz ?  0 : mt->offset - sz;
           p->offset = mt->offset;
   }
   
 static void  static void
 print_man_node(DECL_ARGS)  print_man_node(DECL_ARGS)

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.110

CVSweb