[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.40 and 1.41

version 1.40, 2009/10/27 04:50:15 version 1.41, 2009/10/28 05:08:17
Line 556  mdoc_sh_pre(MDOC_ARGS)
Line 556  mdoc_sh_pre(MDOC_ARGS)
 {  {
         struct htmlpair          tag[2];          struct htmlpair          tag[2];
         const struct mdoc_node  *nn;          const struct mdoc_node  *nn;
         char                     lbuf[BUFSIZ];          char                     buf[BUFSIZ];
         struct roffsu            su;          struct roffsu            su;
   
         if (MDOC_BODY == n->type) {          if (MDOC_BODY == n->type) {
Line 583  mdoc_sh_pre(MDOC_ARGS)
Line 583  mdoc_sh_pre(MDOC_ARGS)
                 return(1);                  return(1);
         }          }
   
         lbuf[0] = 0;          html_idcpy(buf, "id_", BUFSIZ);
         for (nn = n->child; nn; nn = nn->next) {          for (nn = n->child; nn; nn = nn->next) {
                 (void)strlcat(lbuf, nn->string, BUFSIZ);                  html_idcat(buf, nn->string, BUFSIZ);
                 if (nn->next)                  if (nn->next)
                         (void)strlcat(lbuf, "_", BUFSIZ);                          html_idcat(buf, "_", BUFSIZ);
         }          }
   
         /*          /*
Line 597  mdoc_sh_pre(MDOC_ARGS)
Line 597  mdoc_sh_pre(MDOC_ARGS)
   
         PAIR_CLASS_INIT(&tag[0], "sec-head");          PAIR_CLASS_INIT(&tag[0], "sec-head");
         tag[1].key = ATTR_ID;          tag[1].key = ATTR_ID;
         tag[1].val = lbuf;          tag[1].val = buf;
         print_otag(h, TAG_DIV, 2, tag);          print_otag(h, TAG_DIV, 2, tag);
         return(1);          return(1);
 }  }
Line 609  mdoc_ss_pre(MDOC_ARGS)
Line 609  mdoc_ss_pre(MDOC_ARGS)
 {  {
         struct htmlpair          tag[3];          struct htmlpair          tag[3];
         const struct mdoc_node  *nn;          const struct mdoc_node  *nn;
         char                     lbuf[BUFSIZ];          char                     buf[BUFSIZ];
         struct roffsu            su;          struct roffsu            su;
   
         SCALE_VS_INIT(&su, 1);          SCALE_VS_INIT(&su, 1);
Line 636  mdoc_ss_pre(MDOC_ARGS)
Line 636  mdoc_ss_pre(MDOC_ARGS)
   
         /* TODO: see note in mdoc_sh_pre() about duplicates. */          /* TODO: see note in mdoc_sh_pre() about duplicates. */
   
         lbuf[0] = 0;          html_idcpy(buf, "id_", BUFSIZ);
         for (nn = n->child; nn; nn = nn->next) {          for (nn = n->child; nn; nn = nn->next) {
                 (void)strlcat(lbuf, nn->string, BUFSIZ);                  html_idcat(buf, nn->string, BUFSIZ);
                 if (nn->next)                  if (nn->next)
                         (void)strlcat(lbuf, "_", BUFSIZ);                          html_idcat(buf, "_", BUFSIZ);
         }          }
   
         SCALE_HS_INIT(&su, INDENT - HALFINDENT);          SCALE_HS_INIT(&su, INDENT - HALFINDENT);
Line 650  mdoc_ss_pre(MDOC_ARGS)
Line 650  mdoc_ss_pre(MDOC_ARGS)
         PAIR_CLASS_INIT(&tag[0], "ssec-head");          PAIR_CLASS_INIT(&tag[0], "ssec-head");
         PAIR_STYLE_INIT(&tag[1], h);          PAIR_STYLE_INIT(&tag[1], h);
         tag[2].key = ATTR_ID;          tag[2].key = ATTR_ID;
         tag[2].val = lbuf;          tag[2].val = buf;
         print_otag(h, TAG_DIV, 3, tag);          print_otag(h, TAG_DIV, 3, tag);
         return(1);          return(1);
 }  }
Line 1297  mdoc_sx_pre(MDOC_ARGS)
Line 1297  mdoc_sx_pre(MDOC_ARGS)
   
         /* FIXME: duplicates? */          /* FIXME: duplicates? */
   
         (void)strlcpy(buf, "#", BUFSIZ);          strlcpy(buf, "#", BUFSIZ);
           html_idcat(buf, "id_", BUFSIZ);
         for (nn = n->child; nn; nn = nn->next) {          for (nn = n->child; nn; nn = nn->next) {
                 (void)strlcat(buf, nn->string, BUFSIZ);                  html_idcat(buf, nn->string, BUFSIZ);
                 if (nn->next)                  if (nn->next)
                         (void)strlcat(buf, "_", BUFSIZ);                          html_idcat(buf, "_", BUFSIZ);
         }          }
   
         PAIR_CLASS_INIT(&tag[0], "link-sec");          PAIR_CLASS_INIT(&tag[0], "link-sec");
Line 1865  mdoc_in_pre(MDOC_ARGS)
Line 1866  mdoc_in_pre(MDOC_ARGS)
         for (nn = n->child; nn; nn = nn->next) {          for (nn = n->child; nn; nn = nn->next) {
                 PAIR_CLASS_INIT(&tag[0], "link-includes");                  PAIR_CLASS_INIT(&tag[0], "link-includes");
                 i = 1;                  i = 1;
                   bufinit(h);
                 if (h->base_includes) {                  if (h->base_includes) {
                         buffmt_includes(h, nn->string);                          buffmt_includes(h, nn->string);
                         tag[i].key = ATTR_HREF;                          tag[i].key = ATTR_HREF;

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

CVSweb