[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.162 and 1.167

version 1.162, 2011/04/04 16:48:18 version 1.167, 2011/05/17 11:19:45
Line 288  a2width(const char *p, struct roffsu *su)
Line 288  a2width(const char *p, struct roffsu *su)
   
         if ( ! a2roffsu(p, su, SCALE_MAX)) {          if ( ! a2roffsu(p, su, SCALE_MAX)) {
                 su->unit = SCALE_BU;                  su->unit = SCALE_BU;
                 su->scale = (int)strlen(p);                  su->scale = html_strlen(p);
         }          }
 }  }
   
Line 355  a2offs(const char *p, struct roffsu *su)
Line 355  a2offs(const char *p, struct roffsu *su)
                 SCALE_HS_INIT(su, INDENT * 2);                  SCALE_HS_INIT(su, INDENT * 2);
         else if ( ! a2roffsu(p, su, SCALE_MAX)) {          else if ( ! a2roffsu(p, su, SCALE_MAX)) {
                 su->unit = SCALE_BU;                  su->unit = SCALE_BU;
                 su->scale = (int)strlen(p);                  su->scale = html_strlen(p);
         }          }
 }  }
   
Line 382  print_mdoc_head(MDOC_ARGS)
Line 382  print_mdoc_head(MDOC_ARGS)
   
         print_gen_head(h);          print_gen_head(h);
         bufinit(h);          bufinit(h);
         buffmt(h, "%s(%s)", m->title, m->msec);          bufcat_fmt(h, "%s(%s)", m->title, m->msec);
   
         if (m->arch) {          if (m->arch) {
                 bufcat(h, " (");                  bufcat(h, " (");
Line 703  mdoc_nm_pre(MDOC_ARGS)
Line 703  mdoc_nm_pre(MDOC_ARGS)
 {  {
         struct htmlpair  tag;          struct htmlpair  tag;
         struct roffsu    su;          struct roffsu    su;
         size_t           len;          int              len;
   
         switch (n->type) {          switch (n->type) {
         case (MDOC_ELEM):          case (MDOC_ELEM):
Line 731  mdoc_nm_pre(MDOC_ARGS)
Line 731  mdoc_nm_pre(MDOC_ARGS)
   
         for (len = 0, n = n->child; n; n = n->next)          for (len = 0, n = n->child; n; n = n->next)
                 if (MDOC_TEXT == n->type)                  if (MDOC_TEXT == n->type)
                         len += strlen(n->string);                          len += html_strlen(n->string);
   
         if (0 == len && m->name)          if (0 == len && m->name)
                 len = strlen(m->name);                  len = html_strlen(m->name);
   
         SCALE_HS_INIT(&su, (double)len);          SCALE_HS_INIT(&su, (double)len);
         bufcat_su(h, "width", &su);          bufcat_su(h, "width", &su);
Line 1558  mdoc_fn_pre(MDOC_ARGS)
Line 1558  mdoc_fn_pre(MDOC_ARGS)
   
         h->flags |= HTML_NOSPACE;          h->flags |= HTML_NOSPACE;
         print_text(h, "(");          print_text(h, "(");
           h->flags |= HTML_NOSPACE;
   
         bufinit(h);          bufinit(h);
         PAIR_CLASS_INIT(&tag[0], "farg");          PAIR_CLASS_INIT(&tag[0], "farg");

Legend:
Removed from v.1.162  
changed lines
  Added in v.1.167

CVSweb