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

Diff for /mandoc/mdoc_term.c between version 1.319 and 1.320

version 1.319, 2015/04/18 17:53:21 version 1.320, 2015/07/17 22:38:29
Line 34 
Line 34 
 #include "mdoc.h"  #include "mdoc.h"
 #include "out.h"  #include "out.h"
 #include "term.h"  #include "term.h"
   #include "tag.h"
 #include "main.h"  #include "main.h"
   
 struct  termpair {  struct  termpair {
Line 117  static int   termp_skip_pre(DECL_ARGS);
Line 118  static int   termp_skip_pre(DECL_ARGS);
 static  int       termp_sm_pre(DECL_ARGS);  static  int       termp_sm_pre(DECL_ARGS);
 static  int       termp_sp_pre(DECL_ARGS);  static  int       termp_sp_pre(DECL_ARGS);
 static  int       termp_ss_pre(DECL_ARGS);  static  int       termp_ss_pre(DECL_ARGS);
   static  int       termp_tag_pre(DECL_ARGS);
 static  int       termp_under_pre(DECL_ARGS);  static  int       termp_under_pre(DECL_ARGS);
 static  int       termp_ud_pre(DECL_ARGS);  static  int       termp_ud_pre(DECL_ARGS);
 static  int       termp_vt_pre(DECL_ARGS);  static  int       termp_vt_pre(DECL_ARGS);
Line 145  static const struct termact termacts[MDOC_MAX] = {
Line 147  static const struct termact termacts[MDOC_MAX] = {
         { termp_bold_pre, NULL }, /* Cm */          { termp_bold_pre, NULL }, /* Cm */
         { NULL, NULL }, /* Dv */          { NULL, NULL }, /* Dv */
         { NULL, NULL }, /* Er */          { NULL, NULL }, /* Er */
         { NULL, NULL }, /* Ev */          { termp_tag_pre, NULL }, /* Ev */
         { termp_ex_pre, NULL }, /* Ex */          { termp_ex_pre, NULL }, /* Ex */
         { termp_fa_pre, NULL }, /* Fa */          { termp_fa_pre, NULL }, /* Fa */
         { termp_fd_pre, termp_fd_post }, /* Fd */          { termp_fd_pre, termp_fd_post }, /* Fd */
Line 1049  static int
Line 1051  static int
 termp_fl_pre(DECL_ARGS)  termp_fl_pre(DECL_ARGS)
 {  {
   
           termp_tag_pre(p, pair, meta, n);
         term_fontpush(p, TERMFONT_BOLD);          term_fontpush(p, TERMFONT_BOLD);
         term_word(p, "\\-");          term_word(p, "\\-");
   
Line 1330  static int
Line 1333  static int
 termp_bold_pre(DECL_ARGS)  termp_bold_pre(DECL_ARGS)
 {  {
   
           termp_tag_pre(p, pair, meta, n);
         term_fontpush(p, TERMFONT_BOLD);          term_fontpush(p, TERMFONT_BOLD);
         return(1);          return(1);
 }  }
Line 2250  termp_under_pre(DECL_ARGS)
Line 2254  termp_under_pre(DECL_ARGS)
 {  {
   
         term_fontpush(p, TERMFONT_UNDER);          term_fontpush(p, TERMFONT_UNDER);
           return(1);
   }
   
   static int
   termp_tag_pre(DECL_ARGS)
   {
   
           if (n->child != NULL &&
               n->child->type == ROFFT_TEXT &&
               n->prev == NULL &&
               (n->parent->tok == MDOC_It ||
                (n->parent->tok == MDOC_Xo &&
                 n->parent->parent->prev == NULL &&
                 n->parent->parent->parent->tok == MDOC_It)) &&
               ! tag_get(n->child->string, 0))
                   tag_put(n->child->string, 0, p->line);
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.319  
changed lines
  Added in v.1.320

CVSweb