[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.149 and 1.151

version 1.149, 2018/05/08 21:42:34 version 1.151, 2018/06/25 13:01:19
Line 428  man_SH_pre(MAN_ARGS)
Line 428  man_SH_pre(MAN_ARGS)
         char    *id;          char    *id;
   
         if (n->type == ROFFT_HEAD) {          if (n->type == ROFFT_HEAD) {
                 id = html_make_id(n);                  id = html_make_id(n, 1);
                 print_otag(h, TAG_H1, "cTi", "Sh", id);                  print_otag(h, TAG_H1, "cTi", "Sh", id);
                 if (id != NULL)                  if (id != NULL)
                         print_otag(h, TAG_A, "chR", "permalink", id);                          print_otag(h, TAG_A, "chR", "permalink", id);
                 free(id);  
         }          }
         return 1;          return 1;
 }  }
Line 498  man_SS_pre(MAN_ARGS)
Line 497  man_SS_pre(MAN_ARGS)
         char    *id;          char    *id;
   
         if (n->type == ROFFT_HEAD) {          if (n->type == ROFFT_HEAD) {
                 id = html_make_id(n);                  id = html_make_id(n, 1);
                 print_otag(h, TAG_H2, "cTi", "Ss", id);                  print_otag(h, TAG_H2, "cTi", "Ss", id);
                 if (id != NULL)                  if (id != NULL)
                         print_otag(h, TAG_A, "chR", "permalink", id);                          print_otag(h, TAG_A, "chR", "permalink", id);
                 free(id);  
         }          }
         return 1;          return 1;
 }  }
Line 559  man_IP_pre(MAN_ARGS)
Line 557  man_IP_pre(MAN_ARGS)
 static int  static int
 man_HP_pre(MAN_ARGS)  man_HP_pre(MAN_ARGS)
 {  {
         struct roffsu    sum, sui;  
         const struct roff_node *np;  
   
         if (n->type == ROFFT_HEAD)          if (n->type == ROFFT_HEAD)
                 return 0;                  return 0;
         else if (n->type != ROFFT_BLOCK)  
                 return 1;  
   
         np = n->head->child;          if (n->type == ROFFT_BLOCK) {
                   print_bvspace(h, n);
         if (np == NULL || !a2width(np, &sum))                  print_otag(h, TAG_DIV, "c", "HP");
                 SCALE_HS_INIT(&sum, INDENT);          }
   
         sui.unit = sum.unit;  
         sui.scale = -sum.scale;  
   
         print_bvspace(h, n);  
         print_otag(h, TAG_DIV, "csului", "Pp", &sum, &sui);  
         return 1;          return 1;
 }  }
   

Legend:
Removed from v.1.149  
changed lines
  Added in v.1.151

CVSweb