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

version 1.178, 2020/04/04 20:33:33 version 1.181, 2022/07/04 14:37:33
Line 123  html_man(void *arg, const struct roff_meta *man)
Line 123  html_man(void *arg, const struct roff_meta *man)
         if ((h->oflags & HTML_FRAGMENT) == 0) {          if ((h->oflags & HTML_FRAGMENT) == 0) {
                 print_gen_decls(h);                  print_gen_decls(h);
                 print_otag(h, TAG_HTML, "");                  print_otag(h, TAG_HTML, "");
                 if (n != NULL && n->type == ROFFT_COMMENT)  
                         print_gen_comment(h, n);  
                 t = print_otag(h, TAG_HEAD, "");                  t = print_otag(h, TAG_HEAD, "");
                 print_man_head(man, h);                  print_man_head(man, h);
                 print_tagq(h, t);                  print_tagq(h, t);
                   if (n != NULL && n->type == ROFFT_COMMENT)
                           print_gen_comment(h, n);
                 print_otag(h, TAG_BODY, "");                  print_otag(h, TAG_BODY, "");
         }          }
   
         man_root_pre(man, h);          man_root_pre(man, h);
         t = print_otag(h, TAG_DIV, "c", "manual-text");          t = print_otag(h, TAG_MAIN, "c", "manual-text");
         print_man_nodelist(man, n, h);          print_man_nodelist(man, n, h);
         print_tagq(h, t);          print_tagq(h, t);
         man_root_post(man, h);          man_root_post(man, h);
Line 169  print_man_node(MAN_ARGS)
Line 169  print_man_node(MAN_ARGS)
         if (n->type == ROFFT_COMMENT || n->flags & NODE_NOPRT)          if (n->type == ROFFT_COMMENT || n->flags & NODE_NOPRT)
                 return;                  return;
   
         html_fillmode(h, n->flags & NODE_NOFILL ? ROFF_nf : ROFF_fi);          if ((n->flags & NODE_NOFILL) == 0)
                   html_fillmode(h, ROFF_fi);
           else if (html_fillmode(h, ROFF_nf) == ROFF_nf &&
               n->tok != ROFF_fi && n->flags & NODE_LINE &&
               (n->prev == NULL || n->prev->tok != MAN_YS))
                   print_endline(h);
   
         child = 1;          child = 1;
         switch (n->type) {          switch (n->type) {
Line 253  print_man_node(MAN_ARGS)
Line 258  print_man_node(MAN_ARGS)
         }          }
         if (t != NULL)          if (t != NULL)
                 print_stagq(h, t);                  print_stagq(h, t);
   
         if (n->flags & NODE_NOFILL && n->tok != MAN_YS &&  
             (n->next != NULL && n->next->flags & NODE_LINE)) {  
                 /* In .nf = <pre>, print even empty lines. */  
                 h->col++;  
                 print_endline(h);  
         }  
 }  }
   
 static void  static void

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

CVSweb