[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.216 and 1.217

version 1.216, 2014/12/02 10:08:06 version 1.217, 2014/12/23 09:31:46
Line 279  static void
Line 279  static void
 a2width(const char *p, struct roffsu *su)  a2width(const char *p, struct roffsu *su)
 {  {
   
         if ( ! a2roffsu(p, su, SCALE_MAX)) {          if (a2roffsu(p, su, SCALE_MAX) < 2) {
                 su->unit = SCALE_EN;                  su->unit = SCALE_EN;
                 su->scale = html_strlen(p);                  su->scale = html_strlen(p);
         }          }
Line 1568  mdoc_sp_pre(MDOC_ARGS)
Line 1568  mdoc_sp_pre(MDOC_ARGS)
         if (MDOC_sp == n->tok) {          if (MDOC_sp == n->tok) {
                 if (NULL != (n = n->child))                  if (NULL != (n = n->child))
                         if ( ! a2roffsu(n->string, &su, SCALE_VS))                          if ( ! a2roffsu(n->string, &su, SCALE_VS))
                                 SCALE_VS_INIT(&su, atoi(n->string));                                  su.scale = 1.0;
         } else          } else
                 su.scale = 0.0;                  su.scale = 0.0;
   

Legend:
Removed from v.1.216  
changed lines
  Added in v.1.217

CVSweb