[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.128 and 1.129

version 1.128, 2017/01/19 15:27:26 version 1.129, 2017/01/19 15:48:34
Line 46 
Line 46 
         void            (*post)(MDOC_ARGS);          void            (*post)(MDOC_ARGS);
 };  };
   
   static  char             *make_id(const struct roff_node *);
 static  void              print_mdoc_head(MDOC_ARGS);  static  void              print_mdoc_head(MDOC_ARGS);
 static  void              print_mdoc_node(MDOC_ARGS);  static  void              print_mdoc_node(MDOC_ARGS);
 static  void              print_mdoc_nodelist(MDOC_ARGS);  static  void              print_mdoc_nodelist(MDOC_ARGS);
Line 490 
Line 491 
         return 1;          return 1;
 }  }
   
 char *  static char *
 make_id(const struct roff_node *n)  make_id(const struct roff_node *n)
 {  {
         const struct roff_node  *nch;          const struct roff_node  *nch;
Line 633 
Line 634 
                 return 0;                  return 0;
   
         if (h->base_man)          if (h->base_man)
                 print_otag(h, TAG_A, "chM", "link-man",                  print_otag(h, TAG_A, "chM", "Xr",
                     n->child->string, n->child->next == NULL ?                      n->child->string, n->child->next == NULL ?
                     NULL : n->child->next->string);                      NULL : n->child->next->string);
         else          else
                 print_otag(h, TAG_A, "c", "link-man");                  print_otag(h, TAG_A, "c", "Xr");
   
         n = n->child;          n = n->child;
         print_text(h, n->string);          print_text(h, n->string);
Line 860 
Line 861 
 {  {
         char    *id;          char    *id;
   
         print_otag(h, TAG_I, "c", "link-sec");  
         if ((id = make_id(n)) != NULL) {          if ((id = make_id(n)) != NULL) {
                 print_otag(h, TAG_A, "chR", "link-sec", id);                  print_otag(h, TAG_A, "chR", "Sx", id);
                 free(id);                  free(id);
         } else          } else
                 print_otag(h, TAG_A, "c", "link-sec");                  print_otag(h, TAG_A, "c", "Sx");
   
         return 1;          return 1;
 }  }

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