[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.217 and 1.218

version 1.217, 2021/03/30 19:23:50 version 1.218, 2022/06/24 11:15:19
Line 513 
Line 513 
 mdoc_sh_pre(MDOC_ARGS)  mdoc_sh_pre(MDOC_ARGS)
 {  {
         struct roff_node        *sn, *subn;          struct roff_node        *sn, *subn;
         struct tag              *t, *tsec, *tsub;          struct tag              *t, *tnav, *tsec, *tsub;
         char                    *id;          char                    *id;
         int                      sc;          int                      sc;
   
Line 534 
Line 534 
                                         break;                                          break;
                 if (sc < 2)                  if (sc < 2)
                         break;                          break;
                   tnav = print_otag(h, TAG_NAV, "r", "doc-toc");
                 t = print_otag(h, TAG_H1, "c", "Sh");                  t = print_otag(h, TAG_H1, "c", "Sh");
                 print_text(h, "TABLE OF CONTENTS");                  print_text(h, "TABLE OF CONTENTS");
                 print_tagq(h, t);                  print_tagq(h, t);
Line 565 
Line 566 
                         }                          }
                         print_tagq(h, tsec);                          print_tagq(h, tsec);
                 }                  }
                 print_tagq(h, t);                  print_tagq(h, tnav);
                 print_otag(h, TAG_SECTION, "c", "Sh");                  print_otag(h, TAG_SECTION, "c", "Sh");
                 break;                  break;
         case ROFFT_HEAD:          case ROFFT_HEAD:

Legend:
Removed from v.1.217  
changed lines
  Added in v.1.218