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

Diff for /mandoc/mdoc_term.c between version 1.282 and 1.283

version 1.282, 2014/09/17 20:18:58 version 1.283, 2014/10/13 22:00:47
Line 541  a2width(const struct termp *p, const char *v)
Line 541  a2width(const struct termp *p, const char *v)
         struct roffsu    su;          struct roffsu    su;
   
         assert(v);          assert(v);
         if ( ! a2roffsu(v, &su, SCALE_MAX))          if ( ! a2roffsu(v, &su, SCALE_MAX)) {
                 SCALE_HS_INIT(&su, term_strlen(p, v));                  SCALE_HS_INIT(&su, term_strlen(p, v));
                   su.scale /= term_strlen(p, "0");
           }
   
         return(term_hspan(p, &su));          return(term_hspan(p, &su));
 }  }
Line 560  a2offs(const struct termp *p, const char *v)
Line 562  a2offs(const struct termp *p, const char *v)
                 return(term_len(p, p->defindent + 1));                  return(term_len(p, p->defindent + 1));
         else if (0 == strcmp(v, "indent-two"))          else if (0 == strcmp(v, "indent-two"))
                 return(term_len(p, (p->defindent + 1) * 2));                  return(term_len(p, (p->defindent + 1) * 2));
         else if ( ! a2roffsu(v, &su, SCALE_MAX))          else if ( ! a2roffsu(v, &su, SCALE_MAX)) {
                 SCALE_HS_INIT(&su, term_strlen(p, v));                  SCALE_HS_INIT(&su, term_strlen(p, v));
                   su.scale /= term_strlen(p, "0");
           }
   
         return(term_hspan(p, &su));          return(term_hspan(p, &su));
 }  }

Legend:
Removed from v.1.282  
changed lines
  Added in v.1.283

CVSweb