[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.126 and 1.127

version 1.126, 2017/01/19 13:35:02 version 1.127, 2017/01/19 15:27:34
Line 162  html_man(void *arg, const struct roff_man *man)
Line 162  html_man(void *arg, const struct roff_man *man)
                 print_otag(h, TAG_BODY, "");                  print_otag(h, TAG_BODY, "");
         }          }
   
         print_man_nodelist(&man->meta, man->first, &mh, h);          man_root_pre(&man->meta, man->first, &mh, h);
           t = print_otag(h, TAG_DIV, "c", "manual-text");
           print_man_nodelist(&man->meta, man->first->child, &mh, h);
           print_tagq(h, t);
           man_root_post(&man->meta, man->first, &mh, h);
         print_tagq(h, NULL);          print_tagq(h, NULL);
 }  }
   
Line 198  print_man_node(MAN_ARGS)
Line 202  print_man_node(MAN_ARGS)
         t = h->tags.head;          t = h->tags.head;
   
         switch (n->type) {          switch (n->type) {
         case ROFFT_ROOT:  
                 man_root_pre(man, n, mh, h);  
                 break;  
         case ROFFT_TEXT:          case ROFFT_TEXT:
                 if ('\0' == *n->string) {                  if ('\0' == *n->string) {
                         print_paragraph(h);                          print_paragraph(h);
Line 254  print_man_node(MAN_ARGS)
Line 255  print_man_node(MAN_ARGS)
         print_stagq(h, t);          print_stagq(h, t);
   
         switch (n->type) {          switch (n->type) {
         case ROFFT_ROOT:  
                 man_root_post(man, n, mh, h);  
                 break;  
         case ROFFT_EQN:          case ROFFT_EQN:
                 break;                  break;
         default:          default:
Line 353  man_SH_pre(MAN_ARGS)
Line 351  man_SH_pre(MAN_ARGS)
 {  {
         if (n->type == ROFFT_BLOCK) {          if (n->type == ROFFT_BLOCK) {
                 mh->fl &= ~MANH_LITERAL;                  mh->fl &= ~MANH_LITERAL;
                 print_otag(h, TAG_DIV, "c", "section");  
                 return 1;                  return 1;
         } else if (n->type == ROFFT_BODY)          } else if (n->type == ROFFT_BODY)
                 return 1;                  return 1;
   
         print_otag(h, TAG_H1, "");          print_otag(h, TAG_H1, "c", "Sh");
         return 1;          return 1;
 }  }
   
Line 432  man_SS_pre(MAN_ARGS)
Line 429  man_SS_pre(MAN_ARGS)
 {  {
         if (n->type == ROFFT_BLOCK) {          if (n->type == ROFFT_BLOCK) {
                 mh->fl &= ~MANH_LITERAL;                  mh->fl &= ~MANH_LITERAL;
                 print_otag(h, TAG_DIV, "c", "subsection");  
                 return 1;                  return 1;
         } else if (n->type == ROFFT_BODY)          } else if (n->type == ROFFT_BODY)
                 return 1;                  return 1;
   
         print_otag(h, TAG_H2, "");          print_otag(h, TAG_H2, "c", "Ss");
         return 1;          return 1;
 }  }
   
Line 510  man_HP_pre(MAN_ARGS)
Line 506  man_HP_pre(MAN_ARGS)
         sui.scale = -sum.scale;          sui.scale = -sum.scale;
   
         print_bvspace(h, n);          print_bvspace(h, n);
         print_otag(h, TAG_DIV, "csului", "spacer", &sum, &sui);          print_otag(h, TAG_DIV, "csului", "Pp", &sum, &sui);
         return 1;          return 1;
 }  }
   

Legend:
Removed from v.1.126  
changed lines
  Added in v.1.127

CVSweb