[BACK]Return to mdoc_validate.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mdoc_validate.c between version 1.386 and 1.389

version 1.386, 2020/04/24 12:02:33 version 1.389, 2021/07/18 11:41:23
Line 92  static void  post_es(POST_ARGS);
Line 92  static void  post_es(POST_ARGS);
 static  void     post_eoln(POST_ARGS);  static  void     post_eoln(POST_ARGS);
 static  void     post_ex(POST_ARGS);  static  void     post_ex(POST_ARGS);
 static  void     post_fa(POST_ARGS);  static  void     post_fa(POST_ARGS);
   static  void     post_fl(POST_ARGS);
 static  void     post_fn(POST_ARGS);  static  void     post_fn(POST_ARGS);
 static  void     post_fname(POST_ARGS);  static  void     post_fname(POST_ARGS);
 static  void     post_fo(POST_ARGS);  static  void     post_fo(POST_ARGS);
Line 150  static const v_post mdoc_valids[MDOC_MAX - MDOC_Dd] = 
Line 151  static const v_post mdoc_valids[MDOC_MAX - MDOC_Dd] = 
         post_ex,        /* Ex */          post_ex,        /* Ex */
         post_fa,        /* Fa */          post_fa,        /* Fa */
         NULL,           /* Fd */          NULL,           /* Fd */
         post_tag,       /* Fl */          post_fl,        /* Fl */
         post_fn,        /* Fn */          post_fn,        /* Fn */
         post_delim_nb,  /* Ft */          post_delim_nb,  /* Ft */
         post_tag,       /* Ic */          post_tag,       /* Ic */
Line 163  static const v_post mdoc_valids[MDOC_MAX - MDOC_Dd] = 
Line 164  static const v_post mdoc_valids[MDOC_MAX - MDOC_Dd] = 
         post_defaults,  /* Pa */          post_defaults,  /* Pa */
         post_rv,        /* Rv */          post_rv,        /* Rv */
         post_st,        /* St */          post_st,        /* St */
         post_delim_nb,  /* Va */          post_tag,       /* Va */
         post_delim_nb,  /* Vt */          post_delim_nb,  /* Vt */
         post_xr,        /* Xr */          post_xr,        /* Xr */
         NULL,           /* %A */          NULL,           /* %A */
Line 1628  post_es(POST_ARGS)
Line 1629  post_es(POST_ARGS)
 }  }
   
 static void  static void
   post_fl(POST_ARGS)
   {
           struct roff_node        *n;
           char                    *cp;
   
           /*
            * Transform ".Fl Fl long" to ".Fl \-long",
            * resulting for example in better HTML output.
            */
   
           n = mdoc->last;
           if (n->prev != NULL && n->prev->tok == MDOC_Fl &&
               n->prev->child == NULL && n->child != NULL &&
               (n->flags & NODE_LINE) == 0) {
                   mandoc_asprintf(&cp, "\\-%s", n->child->string);
                   free(n->child->string);
                   n->child->string = cp;
                   roff_node_delete(mdoc, n->prev);
           }
           post_tag(mdoc);
   }
   
   static void
 post_xx(POST_ARGS)  post_xx(POST_ARGS)
 {  {
         struct roff_node        *n;          struct roff_node        *n;
Line 2593  post_section(POST_ARGS)
Line 2617  post_section(POST_ARGS)
                         if ((nch = n->child) != NULL &&                          if ((nch = n->child) != NULL &&
                             nch->type == ROFFT_TEXT &&                              nch->type == ROFFT_TEXT &&
                             strcmp(nch->string, tag) == 0)                              strcmp(nch->string, tag) == 0)
                                 tag_put(NULL, TAG_WEAK, n);                                  tag_put(NULL, TAG_STRONG, n);
                         else                          else
                                 tag_put(tag, TAG_FALLBACK, n);                                  tag_put(tag, TAG_FALLBACK, n);
                         free(tag);                          free(tag);

Legend:
Removed from v.1.386  
changed lines
  Added in v.1.389

CVSweb