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

Diff for /mandoc/mdoc_html.c between version 1.157 and 1.158

version 1.157, 2011/04/04 15:41:05 version 1.158, 2011/04/04 15:45:12
Line 1603  mdoc_sp_pre(MDOC_ARGS)
Line 1603  mdoc_sp_pre(MDOC_ARGS)
 static int  static int
 mdoc_lk_pre(MDOC_ARGS)  mdoc_lk_pre(MDOC_ARGS)
 {  {
         const struct mdoc_node  *nn;          struct htmlpair  tag[2];
         struct htmlpair          tag[2];  
   
         nn = n->child;          if (NULL == (n = n->child))
                   return(0);
   
           assert(MDOC_TEXT == n->type);
   
         PAIR_CLASS_INIT(&tag[0], "link-ext");          PAIR_CLASS_INIT(&tag[0], "link-ext");
         PAIR_HREF_INIT(&tag[1], nn->string);          PAIR_HREF_INIT(&tag[1], n->string);
   
         print_otag(h, TAG_A, 2, tag);          print_otag(h, TAG_A, 2, tag);
   
         if (NULL == nn || NULL == nn->next)          for (n = n->next; n; n = n->next) {
                 return(1);                  assert(MDOC_TEXT == n->type);
                   print_text(h, n->string);
         for (nn = nn->next; nn; nn = nn->next)          }
                 print_text(h, nn->string);  
   
         return(0);          return(0);
 }  }

Legend:
Removed from v.1.157  
changed lines
  Added in v.1.158

CVSweb