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

Diff for /mandoc/man_html.c between version 1.81 and 1.82

version 1.81, 2011/08/18 09:16:01 version 1.82, 2011/10/05 21:35:17
Line 141  print_bvspace(struct html *h, const struct man_node *n
Line 141  print_bvspace(struct html *h, const struct man_node *n
 void  void
 html_man(void *arg, const struct man *m)  html_man(void *arg, const struct man *m)
 {  {
         struct html     *h;  
         struct tag      *t;  
         struct mhtml     mh;          struct mhtml     mh;
   
         h = (struct html *)arg;  
   
         print_gen_decls(h);  
   
         memset(&mh, 0, sizeof(struct mhtml));          memset(&mh, 0, sizeof(struct mhtml));
           print_man(man_meta(m), man_node(m), &mh, (struct html *)arg);
         t = print_otag(h, TAG_HTML, 0, NULL);          putchar('\n');
         print_man(man_meta(m), man_node(m), &mh, h);  
         print_tagq(h, t);  
   
         printf("\n");  
 }  }
   
 static void  static void
 print_man(MAN_ARGS)  print_man(MAN_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_man_head(m, n, mh, 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_man_head(m, n, mh, 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_man_nodelist(m, n, mh, h);          print_man_nodelist(m, n, mh, h);
         print_tagq(h, t);          print_tagq(h, t);
 }  }

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

CVSweb