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

Diff for /mandoc/mdoc_html.c between version 1.342 and 1.343

version 1.342, 2021/03/30 19:26:20 version 1.343, 2022/06/24 11:15:53
Line 515  static int
Line 515  static int
 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 536  mdoc_sh_pre(MDOC_ARGS)
Line 536  mdoc_sh_pre(MDOC_ARGS)
                                         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 567  mdoc_sh_pre(MDOC_ARGS)
Line 568  mdoc_sh_pre(MDOC_ARGS)
                         }                          }
                         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.342  
changed lines
  Added in v.1.343

CVSweb