[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.37 and 1.38

version 1.37, 2012/07/13 20:43:40 version 1.38, 2012/07/13 23:57:58
Line 1249  pre_li(DECL_ARGS)
Line 1249  pre_li(DECL_ARGS)
 static int  static int
 pre_nm(DECL_ARGS)  pre_nm(DECL_ARGS)
 {  {
           char    *name;
   
         if (MDOC_BLOCK == n->type)          if (MDOC_BLOCK == n->type)
                 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);
         if (NULL == n->child && NULL == m->name)          name = n->child ? n->child->string : m->name;
           if (NULL == name)
                 return(0);                  return(0);
           if (MDOC_HEAD == n->type) {
                   if (NULL == n->parent->prev)
                           outflags |= MMAN_sp;
                   print_block(".HP", 0);
                   printf(" %ldn", strlen(name) + 1);
                   outflags |= MMAN_nl;
           }
         font_push('B');          font_push('B');
         if (NULL == n->child)          if (NULL == n->child)
                 print_word(m->name);                  print_word(m->name);

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

CVSweb