[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.178 and 1.179

version 1.178, 2011/08/26 09:03:17 version 1.179, 2011/10/05 21:35:17
Line 262  static const char * const lists[LIST_MAX] = {
Line 262  static const char * const lists[LIST_MAX] = {
 void  void
 html_mdoc(void *arg, const struct mdoc *m)  html_mdoc(void *arg, const struct mdoc *m)
 {  {
         struct html     *h;  
         struct tag      *t;  
   
         h = (struct html *)arg;          print_mdoc(mdoc_meta(m), mdoc_node(m), (struct html *)arg);
           putchar('\n');
         print_gen_decls(h);  
         t = print_otag(h, TAG_HTML, 0, NULL);  
         print_mdoc(mdoc_meta(m), mdoc_node(m), h);  
         print_tagq(h, t);  
   
         printf("\n");  
 }  }
   
   
Line 360  a2offs(const char *p, struct roffsu *su)
Line 352  a2offs(const char *p, struct roffsu *su)
 static void  static void
 print_mdoc(MDOC_ARGS)  print_mdoc(MDOC_ARGS)
 {  {
         struct tag      *t;          struct tag      *t, *tt;
           struct htmlpair  tag;
   
         t = print_otag(h, TAG_HEAD, 0, NULL);          PAIR_CLASS_INIT(&tag, "mandoc");
         print_mdoc_head(m, n, h);  
         print_tagq(h, t);  
   
         t = print_otag(h, TAG_BODY, 0, NULL);          if ( ! (HTML_FRAGMENT & h->oflags)) {
                   print_gen_decls(h);
                   t = print_otag(h, TAG_HTML, 0, NULL);
                   tt = print_otag(h, TAG_HEAD, 0, NULL);
                   print_mdoc_head(m, n, h);
                   print_tagq(h, tt);
                   print_otag(h, TAG_BODY, 0, NULL);
                   print_otag(h, TAG_DIV, 1, &tag);
           } else
                   t = print_otag(h, TAG_DIV, 1, &tag);
   
         print_mdoc_nodelist(m, n, h);          print_mdoc_nodelist(m, n, h);
         print_tagq(h, t);          print_tagq(h, t);
 }  }

Legend:
Removed from v.1.178  
changed lines
  Added in v.1.179

CVSweb