[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.284 and 1.285

version 1.284, 2017/05/05 13:17:55 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 */
 };  };
Line 1009  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 1323  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 (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;  
         }  
   
         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.284  
changed lines
  Added in v.1.285

CVSweb