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

Diff for /mandoc/html.c between version 1.59 and 1.62

version 1.59, 2009/10/07 14:39:00 version 1.62, 2009/10/09 06:54:11
Line 549  buffmt_includes(struct html *h, const char *name)
Line 549  buffmt_includes(struct html *h, const char *name)
         const char      *p, *pp;          const char      *p, *pp;
   
         pp = h->base_includes;          pp = h->base_includes;
         while ((p = strchr(pp, '%'))) {  
           while (NULL != (p = strchr(pp, '%'))) {
                 bufncat(h, pp, (size_t)(p - pp));                  bufncat(h, pp, (size_t)(p - pp));
                 switch (*(p + 1)) {                  switch (*(p + 1)) {
                 case('I'):                  case('I'):
Line 573  buffmt_man(struct html *h, 
Line 574  buffmt_man(struct html *h, 
         const char      *p, *pp;          const char      *p, *pp;
   
         pp = h->base_man;          pp = h->base_man;
         while ((p = strchr(pp, '%'))) {  
           /* LINTED */
           while (NULL != (p = strchr(pp, '%'))) {
                 bufncat(h, pp, (size_t)(p - pp));                  bufncat(h, pp, (size_t)(p - pp));
                 switch (*(p + 1)) {                  switch (*(p + 1)) {
                 case('S'):                  case('S'):
Line 596  buffmt_man(struct html *h, 
Line 599  buffmt_man(struct html *h, 
 void  void
 bufcat_su(struct html *h, const char *p, const struct roffsu *su)  bufcat_su(struct html *h, const char *p, const struct roffsu *su)
 {  {
         int              v;          double           v;
         char            *u;          char            *u;
   
         v = su->scale;          v = su->scale;
Line 636  bufcat_su(struct html *h, const char *p, const struct 
Line 639  bufcat_su(struct html *h, const char *p, const struct 
                 break;                  break;
         }          }
   
         buffmt(h, "%s: %d%s;", p, v, u);          if (su->pt)
                   buffmt(h, "%s: %f%s;", p, v, u);
           else
                   /* LINTED */
                   buffmt(h, "%s: %d%s;", p, (int)v, u);
 }  }

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.62

CVSweb