[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.322 and 1.327

version 1.322, 2015/07/25 14:18:04 version 1.327, 2015/09/26 00:54:04
Line 95  static int   termp_bx_pre(DECL_ARGS);
Line 95  static int   termp_bx_pre(DECL_ARGS);
 static  int       termp_cd_pre(DECL_ARGS);  static  int       termp_cd_pre(DECL_ARGS);
 static  int       termp_d1_pre(DECL_ARGS);  static  int       termp_d1_pre(DECL_ARGS);
 static  int       termp_eo_pre(DECL_ARGS);  static  int       termp_eo_pre(DECL_ARGS);
   static  int       termp_er_pre(DECL_ARGS);
 static  int       termp_ex_pre(DECL_ARGS);  static  int       termp_ex_pre(DECL_ARGS);
 static  int       termp_fa_pre(DECL_ARGS);  static  int       termp_fa_pre(DECL_ARGS);
 static  int       termp_fd_pre(DECL_ARGS);  static  int       termp_fd_pre(DECL_ARGS);
Line 145  static const struct termact termacts[MDOC_MAX] = {
Line 146  static const struct termact termacts[MDOC_MAX] = {
         { termp_under_pre, NULL }, /* Ar */          { termp_under_pre, NULL }, /* Ar */
         { termp_cd_pre, NULL }, /* Cd */          { termp_cd_pre, NULL }, /* Cd */
         { termp_bold_pre, NULL }, /* Cm */          { termp_bold_pre, NULL }, /* Cm */
         { NULL, NULL }, /* Dv */          { termp_li_pre, NULL }, /* Dv */
         { NULL, NULL }, /* Er */          { termp_er_pre, NULL }, /* Er */
         { termp_tag_pre, 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 */
Line 801  termp_it_pre(DECL_ARGS)
Line 802  termp_it_pre(DECL_ARGS)
                 if (n->type != ROFFT_HEAD)                  if (n->type != ROFFT_HEAD)
                         break;                          break;
   
                 p->flags |= TERMP_NOBREAK | TERMP_BRIND;                  p->flags |= TERMP_NOBREAK | TERMP_BRTRSP | TERMP_BRIND;
                 p->trailspace = 2;                  p->trailspace = 2;
   
                 if (NULL == n->next || NULL == n->next->child)                  if (NULL == n->next || NULL == n->next->child)
Line 973  termp_it_post(DECL_ARGS)
Line 974  termp_it_post(DECL_ARGS)
          * has munged them in the meanwhile.           * has munged them in the meanwhile.
          */           */
   
         p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND |          p->flags &= ~(TERMP_NOBREAK | TERMP_BRTRSP | TERMP_BRIND |
                         TERMP_DANGLE | TERMP_HANG);                          TERMP_DANGLE | TERMP_HANG);
         p->trailspace = 0;          p->trailspace = 0;
 }  }
Line 1480  termp_fn_pre(DECL_ARGS)
Line 1481  termp_fn_pre(DECL_ARGS)
         term_word(p, n->string);          term_word(p, n->string);
         term_fontpop(p);          term_fontpop(p);
   
         if (n->sec == SEC_DESCRIPTION) {          if (n->sec == SEC_DESCRIPTION)
                 if ( ! tag_get(n->string, 0, ++fn_prio))                  tag_put(n->string, ++fn_prio, p->line);
                         tag_put(n->string, 0, fn_prio, p->line);  
         }  
   
         if (pretty) {          if (pretty) {
                 term_flushln(p);                  term_flushln(p);
Line 1722  termp_xx_pre(DECL_ARGS)
Line 1721  termp_xx_pre(DECL_ARGS)
                 break;                  break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */  
         }          }
   
         term_word(p, pp);          term_word(p, pp);
Line 1919  termp_quote_pre(DECL_ARGS)
Line 1917  termp_quote_pre(DECL_ARGS)
                 break;                  break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */  
         }          }
   
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
Line 1990  termp_quote_post(DECL_ARGS)
Line 1987  termp_quote_post(DECL_ARGS)
                 break;                  break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */  
         }          }
 }  }
   
Line 2219  termp_bk_pre(DECL_ARGS)
Line 2215  termp_bk_pre(DECL_ARGS)
                 break;                  break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */  
         }          }
   
         return(1);          return(1);
Line 2273  termp_under_pre(DECL_ARGS)
Line 2268  termp_under_pre(DECL_ARGS)
 }  }
   
 static int  static int
   termp_er_pre(DECL_ARGS)
   {
   
           if (n->sec == SEC_ERRORS &&
               (n->parent->tok == MDOC_It ||
                (n->parent->tok == MDOC_Bq &&
                 n->parent->parent->parent->tok == MDOC_It)))
                   tag_put(n->child->string, 1, p->line);
           return(1);
   }
   
   static int
 termp_tag_pre(DECL_ARGS)  termp_tag_pre(DECL_ARGS)
 {  {
   
Line 2282  termp_tag_pre(DECL_ARGS)
Line 2289  termp_tag_pre(DECL_ARGS)
             (n->parent->tok == MDOC_It ||              (n->parent->tok == MDOC_It ||
              (n->parent->tok == MDOC_Xo &&               (n->parent->tok == MDOC_Xo &&
               n->parent->parent->prev == NULL &&                n->parent->parent->prev == NULL &&
               n->parent->parent->parent->tok == MDOC_It)) &&                n->parent->parent->parent->tok == MDOC_It)))
             ! tag_get(n->child->string, 0, 1))                  tag_put(n->child->string, 1, p->line);
                 tag_put(n->child->string, 0, 1, p->line);  
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.322  
changed lines
  Added in v.1.327

CVSweb