[BACK]Return to mdoc_html.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mdoc_html.c between version 1.127 and 1.128

version 1.127, 2017/01/19 13:34:59 version 1.128, 2017/01/19 15:27:26
Line 311 
Line 311 
         }          }
   
         mdoc_root_pre(&mdoc->meta, mdoc->first->child, h);          mdoc_root_pre(&mdoc->meta, mdoc->first->child, h);
           t = print_otag(h, TAG_DIV, "c", "manual-text");
         print_mdoc_nodelist(&mdoc->meta, mdoc->first->child, h);          print_mdoc_nodelist(&mdoc->meta, mdoc->first->child, h);
           print_tagq(h, t);
         mdoc_root_post(&mdoc->meta, mdoc->first->child, h);          mdoc_root_post(&mdoc->meta, mdoc->first->child, h);
         print_tagq(h, NULL);          print_tagq(h, NULL);
 }  }
Line 517 
Line 519 
   
         switch (n->type) {          switch (n->type) {
         case ROFFT_BLOCK:          case ROFFT_BLOCK:
                 print_otag(h, TAG_DIV, "c", "section");  
                 return 1;                  return 1;
         case ROFFT_BODY:          case ROFFT_BODY:
                 if (n->sec == SEC_AUTHORS)                  if (n->sec == SEC_AUTHORS)
Line 528 
Line 529 
         }          }
   
         if ((id = make_id(n)) != NULL) {          if ((id = make_id(n)) != NULL) {
                 print_otag(h, TAG_H1, "i", id);                  print_otag(h, TAG_H1, "ci", "Sh", id);
                 free(id);                  free(id);
         } else          } else
                 print_otag(h, TAG_H1, "");                  print_otag(h, TAG_H1, "c", "Sh");
   
         return 1;          return 1;
 }  }
Line 541 
Line 542 
 {  {
         char    *id;          char    *id;
   
         if (n->type == ROFFT_BLOCK) {          if (n->type != ROFFT_HEAD)
                 print_otag(h, TAG_DIV, "c", "subsection");  
                 return 1;                  return 1;
         } else if (n->type == ROFFT_BODY)  
                 return 1;  
   
         if ((id = make_id(n)) != NULL) {          if ((id = make_id(n)) != NULL) {
                 print_otag(h, TAG_H2, "i", id);                  print_otag(h, TAG_H2, "ci", "Ss", id);
                 free(id);                  free(id);
         } else          } else
                 print_otag(h, TAG_H2, "");                  print_otag(h, TAG_H2, "c", "Ss");
   
         return 1;          return 1;
 }  }

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