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

Diff for /mandoc/html.c between version 1.58 and 1.60

version 1.58, 2009/10/07 12:35:23 version 1.60, 2009/10/07 15:06:03
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, '%'))) {          p = strchr(pp, '%');
           while (NULL != p) {
                 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, '%'))) {          p = strchr(pp, '%');
           while (NULL != p) {
                 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 614  bufcat_su(struct html *h, const char *p, const struct 
Line 616  bufcat_su(struct html *h, const char *p, const struct 
         case (SCALE_PT):          case (SCALE_PT):
                 u = "pt";                  u = "pt";
                 break;                  break;
           case (SCALE_EM):
                   u = "em";
                   break;
         case (SCALE_MM):          case (SCALE_MM):
                 if (0 == (v /= 100))                  if (0 == (v /= 100))
                         v = 1;                          v = 1;
                 u = "em";                  u = "em";
                 break;                  break;
           case (SCALE_EN):
                   u = "ex";
                   break;
           case (SCALE_BU):
                   u = "ex";
                   break;
         case (SCALE_VS):          case (SCALE_VS):
                 /* FALLTHROUGH */  
         case (SCALE_EM):  
                 u = "em";                  u = "em";
                 break;                  break;
         default:          default:

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.60

CVSweb