[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.281 and 1.284

version 1.281, 2017/05/04 17:48:29 version 1.284, 2017/05/05 13:17:55
Line 240  static const struct htmlmdoc __mdocs[MDOC_MAX - MDOC_D
Line 240  static const struct htmlmdoc __mdocs[MDOC_MAX - MDOC_D
         {mdoc_sp_pre, NULL}, /* sp */          {mdoc_sp_pre, NULL}, /* sp */
         {mdoc__x_pre, mdoc__x_post}, /* %U */          {mdoc__x_pre, mdoc__x_post}, /* %U */
         {NULL, NULL}, /* Ta */          {NULL, NULL}, /* Ta */
         {mdoc_skip_pre, NULL}, /* ll */  
 };  };
 static  const struct htmlmdoc *const mdocs = __mdocs - MDOC_Dd;  static  const struct htmlmdoc *const mdocs = __mdocs - MDOC_Dd;
   
Line 394  print_mdoc_node(MDOC_ARGS)
Line 393  print_mdoc_node(MDOC_ARGS)
                 }                  }
                 assert(h->tblt == NULL);                  assert(h->tblt == NULL);
                 if (n->tok < ROFF_MAX) {                  if (n->tok < ROFF_MAX) {
                         switch(n->tok) {                          roff_html_pre(h, n);
                         case ROFF_br:                          child = 0;
                                 mdoc_sp_pre(meta, n, h);  
                                 break;  
                         default:  
                                 abort();  
                         }  
                         break;                          break;
                 }                  }
                 assert(n->tok >= MDOC_Dd && n->tok < MDOC_MAX);                  assert(n->tok >= MDOC_Dd && n->tok < MDOC_MAX);
Line 1337  mdoc_sp_pre(MDOC_ARGS)
Line 1331  mdoc_sp_pre(MDOC_ARGS)
         struct roffsu    su;          struct roffsu    su;
   
         SCALE_VS_INIT(&su, 1);          SCALE_VS_INIT(&su, 1);
           if (NULL != (n = n->child)) {
         if (MDOC_sp == n->tok) {                  if ( ! a2roffsu(n->string, &su, SCALE_VS))
                 if (NULL != (n = n->child)) {                          su.scale = 1.0;
                         if ( ! a2roffsu(n->string, &su, SCALE_VS))                  else if (su.scale < 0.0)
                                 su.scale = 1.0;                          su.scale = 0.0;
                         else if (su.scale < 0.0)          }
                                 su.scale = 0.0;  
                 }  
         } else  
                 su.scale = 0.0;  
   
         print_otag(h, TAG_DIV, "suh", &su);          print_otag(h, TAG_DIV, "suh", &su);
   

Legend:
Removed from v.1.281  
changed lines
  Added in v.1.284

CVSweb