[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.18 and 1.19

version 1.18, 2009/10/03 16:36:06 version 1.19, 2009/10/03 19:02:45
Line 1438  mdoc_an_pre(MDOC_ARGS)
Line 1438  mdoc_an_pre(MDOC_ARGS)
 {  {
         struct htmlpair tag;          struct htmlpair tag;
   
           /* TODO: -split and -nosplit (see termp_an_pre()). */
   
         tag.key = ATTR_CLASS;          tag.key = ATTR_CLASS;
         tag.val = "author";          tag.val = "author";
         print_otag(h, TAG_SPAN, 1, &tag);          print_otag(h, TAG_SPAN, 1, &tag);
Line 1616  mdoc_fn_pre(MDOC_ARGS)
Line 1618  mdoc_fn_pre(MDOC_ARGS)
         }          }
   
         /* Split apart into type and name. */          /* Split apart into type and name. */
   
         tag[0].key = ATTR_CLASS;  
         tag[0].val = "ftype";  
         t = print_otag(h, TAG_SPAN, 1, tag);  
   
         assert(n->child->string);          assert(n->child->string);
         sp = n->child->string;          sp = n->child->string;
         while (NULL != (ep = strchr(sp, ' '))) {  
                 sz = MIN((int)(ep - sp), BUFSIZ - 1);  
                 (void)memcpy(nbuf, sp, (size_t)sz);  
                 nbuf[sz] = '\0';  
                 print_text(h, nbuf);  
                 sp = ++ep;  
         }  
   
         print_tagq(h, t);          if ((ep = strchr(sp, ' '))) {
                   tag[0].key = ATTR_CLASS;
                   tag[0].val = "ftype";
   
                   t = print_otag(h, TAG_SPAN, 1, tag);
   
                   while (ep) {
                           sz = MIN((int)(ep - sp), BUFSIZ - 1);
                           (void)memcpy(nbuf, sp, (size_t)sz);
                           nbuf[sz] = '\0';
                           print_text(h, nbuf);
                           sp = ++ep;
                           ep = strchr(sp, ' ');
                   }
                   print_tagq(h, t);
           }
   
         tag[0].key = ATTR_CLASS;          tag[0].key = ATTR_CLASS;
         tag[0].val = "fname";          tag[0].val = "fname";

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

CVSweb