[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.190 and 1.191

version 1.190, 2014/04/23 16:08:33 version 1.191, 2014/07/02 03:48:07
Line 97  static int    mdoc_it_pre(MDOC_ARGS);
Line 97  static int    mdoc_it_pre(MDOC_ARGS);
 static  int               mdoc_lb_pre(MDOC_ARGS);  static  int               mdoc_lb_pre(MDOC_ARGS);
 static  int               mdoc_li_pre(MDOC_ARGS);  static  int               mdoc_li_pre(MDOC_ARGS);
 static  int               mdoc_lk_pre(MDOC_ARGS);  static  int               mdoc_lk_pre(MDOC_ARGS);
 static  int               mdoc_ll_pre(MDOC_ARGS);  
 static  int               mdoc_mt_pre(MDOC_ARGS);  static  int               mdoc_mt_pre(MDOC_ARGS);
 static  int               mdoc_ms_pre(MDOC_ARGS);  static  int               mdoc_ms_pre(MDOC_ARGS);
 static  int               mdoc_nd_pre(MDOC_ARGS);  static  int               mdoc_nd_pre(MDOC_ARGS);
Line 111  static int    mdoc_quote_pre(MDOC_ARGS);
Line 110  static int    mdoc_quote_pre(MDOC_ARGS);
 static  int               mdoc_rs_pre(MDOC_ARGS);  static  int               mdoc_rs_pre(MDOC_ARGS);
 static  int               mdoc_rv_pre(MDOC_ARGS);  static  int               mdoc_rv_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_sm_pre(MDOC_ARGS);  static  int               mdoc_sm_pre(MDOC_ARGS);
 static  int               mdoc_sp_pre(MDOC_ARGS);  static  int               mdoc_sp_pre(MDOC_ARGS);
 static  int               mdoc_ss_pre(MDOC_ARGS);  static  int               mdoc_ss_pre(MDOC_ARGS);
Line 157  static const struct htmlmdoc mdocs[MDOC_MAX] = {
Line 157  static const struct htmlmdoc mdocs[MDOC_MAX] = {
         {mdoc_nd_pre, NULL}, /* Nd */          {mdoc_nd_pre, NULL}, /* Nd */
         {mdoc_nm_pre, NULL}, /* Nm */          {mdoc_nm_pre, NULL}, /* Nm */
         {mdoc_quote_pre, mdoc_quote_post}, /* Op */          {mdoc_quote_pre, mdoc_quote_post}, /* Op */
         {NULL, NULL}, /* Ot */          {mdoc_ft_pre, NULL}, /* Ot */
         {mdoc_pa_pre, NULL}, /* Pa */          {mdoc_pa_pre, NULL}, /* Pa */
         {mdoc_rv_pre, NULL}, /* Rv */          {mdoc_rv_pre, NULL}, /* Rv */
         {NULL, NULL}, /* St */          {NULL, NULL}, /* St */
Line 227  static const struct htmlmdoc mdocs[MDOC_MAX] = {
Line 227  static const struct htmlmdoc mdocs[MDOC_MAX] = {
         {NULL, NULL}, /* Ek */          {NULL, NULL}, /* Ek */
         {mdoc_bt_pre, NULL}, /* Bt */          {mdoc_bt_pre, NULL}, /* Bt */
         {NULL, NULL}, /* Hf */          {NULL, NULL}, /* Hf */
         {NULL, NULL}, /* Fr */          {mdoc_em_pre, NULL}, /* Fr */
         {mdoc_ud_pre, NULL}, /* Ud */          {mdoc_ud_pre, NULL}, /* Ud */
         {mdoc_lb_pre, NULL}, /* Lb */          {mdoc_lb_pre, NULL}, /* Lb */
         {mdoc_pp_pre, NULL}, /* Lp */          {mdoc_pp_pre, NULL}, /* Lp */
Line 237  static const struct htmlmdoc mdocs[MDOC_MAX] = {
Line 237  static const struct htmlmdoc mdocs[MDOC_MAX] = {
         {mdoc_quote_pre, mdoc_quote_post}, /* Bro */          {mdoc_quote_pre, mdoc_quote_post}, /* Bro */
         {NULL, NULL}, /* Brc */          {NULL, NULL}, /* Brc */
         {mdoc__x_pre, mdoc__x_post}, /* %C */          {mdoc__x_pre, mdoc__x_post}, /* %C */
         {NULL, NULL}, /* Es */  /* TODO */          {mdoc_skip_pre, NULL}, /* Es */
         {NULL, NULL}, /* En */  /* TODO */          {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}, /* br */          {mdoc_sp_pre, NULL}, /* br */
         {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_ll_pre, NULL}, /* ll */          {mdoc_skip_pre, NULL}, /* ll */
 };  };
   
 static  const char * const lists[LIST_MAX] = {  static  const char * const lists[LIST_MAX] = {
Line 1545  mdoc_sm_pre(MDOC_ARGS)
Line 1545  mdoc_sm_pre(MDOC_ARGS)
 }  }
   
 static int  static int
 mdoc_ll_pre(MDOC_ARGS)  mdoc_skip_pre(MDOC_ARGS)
 {  {
   
         return(0);          return(0);
Line 2085  mdoc_quote_pre(MDOC_ARGS)
Line 2085  mdoc_quote_pre(MDOC_ARGS)
                 PAIR_CLASS_INIT(&tag, "opt");                  PAIR_CLASS_INIT(&tag, "opt");
                 print_otag(h, TAG_SPAN, 1, &tag);                  print_otag(h, TAG_SPAN, 1, &tag);
                 break;                  break;
           case MDOC_En:
                   if (NULL == n->norm->Es ||
                       NULL == n->norm->Es->child)
                           return(1);
                   print_text(h, n->norm->Es->child->string);
                   break;
         case MDOC_Eo:          case MDOC_Eo:
                 break;                  break;
         case MDOC_Do:          case MDOC_Do:
Line 2128  mdoc_quote_post(MDOC_ARGS)
Line 2134  mdoc_quote_post(MDOC_ARGS)
         if (MDOC_BODY != n->type)          if (MDOC_BODY != n->type)
                 return;                  return;
   
         h->flags |= HTML_NOSPACE;          if (MDOC_En != n->tok)
                   h->flags |= HTML_NOSPACE;
   
         switch (n->tok) {          switch (n->tok) {
         case MDOC_Ao:          case MDOC_Ao:
Line 2149  mdoc_quote_post(MDOC_ARGS)
Line 2156  mdoc_quote_post(MDOC_ARGS)
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case MDOC_Bq:          case MDOC_Bq:
                 print_text(h, "\\(rB");                  print_text(h, "\\(rB");
                   break;
           case MDOC_En:
                   if (NULL != n->norm->Es &&
                       NULL != n->norm->Es->child &&
                       NULL != n->norm->Es->child->next) {
                           h->flags |= HTML_NOSPACE;
                           print_text(h, n->norm->Es->child->next->string);
                   }
                 break;                  break;
         case MDOC_Eo:          case MDOC_Eo:
                 break;                  break;

Legend:
Removed from v.1.190  
changed lines
  Added in v.1.191

CVSweb