[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.285

version 1.281, 2017/05/04 17:48:29 version 1.285, 2017/05/05 15:17:32
Line 108  static int    mdoc_rs_pre(MDOC_ARGS);
Line 108  static int    mdoc_rs_pre(MDOC_ARGS);
 static  int               mdoc_sh_pre(MDOC_ARGS);  static  int               mdoc_sh_pre(MDOC_ARGS);
 static  int               mdoc_skip_pre(MDOC_ARGS);  static  int               mdoc_skip_pre(MDOC_ARGS);
 static  int               mdoc_sm_pre(MDOC_ARGS);  static  int               mdoc_sm_pre(MDOC_ARGS);
 static  int               mdoc_sp_pre(MDOC_ARGS);  
 static  int               mdoc_ss_pre(MDOC_ARGS);  static  int               mdoc_ss_pre(MDOC_ARGS);
 static  int               mdoc_st_pre(MDOC_ARGS);  static  int               mdoc_st_pre(MDOC_ARGS);
 static  int               mdoc_sx_pre(MDOC_ARGS);  static  int               mdoc_sx_pre(MDOC_ARGS);
Line 237  static const struct htmlmdoc __mdocs[MDOC_MAX - MDOC_D
Line 236  static const struct htmlmdoc __mdocs[MDOC_MAX - MDOC_D
         {mdoc_quote_pre, mdoc_quote_post}, /* En */          {mdoc_quote_pre, mdoc_quote_post}, /* En */
         {mdoc_xx_pre, NULL}, /* Dx */          {mdoc_xx_pre, NULL}, /* Dx */
         {mdoc__x_pre, mdoc__x_post}, /* %Q */          {mdoc__x_pre, mdoc__x_post}, /* %Q */
         {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 391  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 1015  mdoc_bd_pre(MDOC_ARGS)
Line 1007  mdoc_bd_pre(MDOC_ARGS)
                  * anyway, so don't sweat it.                   * anyway, so don't sweat it.
                  */                   */
                 switch (nn->tok) {                  switch (nn->tok) {
                 case MDOC_Sm:  
                 case ROFF_br:                  case ROFF_br:
                 case MDOC_sp:                  case ROFF_sp:
                   case MDOC_Sm:
                 case MDOC_Bl:                  case MDOC_Bl:
                 case MDOC_D1:                  case MDOC_D1:
                 case MDOC_Dl:                  case MDOC_Dl:
Line 1329  mdoc_pp_pre(MDOC_ARGS)
Line 1321  mdoc_pp_pre(MDOC_ARGS)
   
         print_paragraph(h);          print_paragraph(h);
         return 0;          return 0;
 }  
   
 static int  
 mdoc_sp_pre(MDOC_ARGS)  
 {  
         struct roffsu    su;  
   
         SCALE_VS_INIT(&su, 1);  
   
         if (MDOC_sp == n->tok) {  
                 if (NULL != (n = n->child)) {  
                         if ( ! a2roffsu(n->string, &su, SCALE_VS))  
                                 su.scale = 1.0;  
                         else if (su.scale < 0.0)  
                                 su.scale = 0.0;  
                 }  
         } else  
                 su.scale = 0.0;  
   
         print_otag(h, TAG_DIV, "suh", &su);  
   
         /* So the div isn't empty: */  
         print_text(h, "\\~");  
   
         return 0;  
   
 }  }
   
 static int  static int

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

CVSweb