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

Diff for /mandoc/man_term.c between version 1.142 and 1.145

version 1.142, 2014/03/08 16:22:04 version 1.145, 2014/04/08 07:13:11
Line 84  static int    pre_ft(DECL_ARGS);
Line 84  static int    pre_ft(DECL_ARGS);
 static  int               pre_ign(DECL_ARGS);  static  int               pre_ign(DECL_ARGS);
 static  int               pre_in(DECL_ARGS);  static  int               pre_in(DECL_ARGS);
 static  int               pre_literal(DECL_ARGS);  static  int               pre_literal(DECL_ARGS);
   static  int               pre_ll(DECL_ARGS);
 static  int               pre_sp(DECL_ARGS);  static  int               pre_sp(DECL_ARGS);
   
 static  void              post_IP(DECL_ARGS);  static  void              post_IP(DECL_ARGS);
Line 133  static const struct termact termacts[MAN_MAX] = {
Line 134  static const struct termact termacts[MAN_MAX] = {
         { pre_literal, NULL, 0 }, /* EE */          { pre_literal, NULL, 0 }, /* EE */
         { pre_UR, post_UR, 0 }, /* UR */          { pre_UR, post_UR, 0 }, /* UR */
         { NULL, NULL, 0 }, /* UE */          { NULL, NULL, 0 }, /* UE */
           { pre_ll, NULL, MAN_NOTEXT }, /* ll */
 };  };
   
   
Line 237  pre_ign(DECL_ARGS)
Line 239  pre_ign(DECL_ARGS)
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  static int
   pre_ll(DECL_ARGS)
   {
   
           term_setwidth(p, n->nchild ? n->child->string : NULL);
           return(0);
   }
   
   
   /* ARGSUSED */
   static int
 pre_I(DECL_ARGS)  pre_I(DECL_ARGS)
 {  {
   
Line 266  pre_literal(DECL_ARGS)
Line 278  pre_literal(DECL_ARGS)
                 p->offset = p->rmargin;                  p->offset = p->rmargin;
                 p->rmargin = p->maxrmargin;                  p->rmargin = p->maxrmargin;
                 p->trailspace = 0;                  p->trailspace = 0;
                 p->flags &= ~TERMP_NOBREAK;                  p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND);
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;
         }          }
   
Line 535  pre_HP(DECL_ARGS)
Line 547  pre_HP(DECL_ARGS)
         }          }
   
         if ( ! (MANT_LITERAL & mt->fl)) {          if ( ! (MANT_LITERAL & mt->fl)) {
                 p->flags |= TERMP_NOBREAK;                  p->flags |= TERMP_NOBREAK | TERMP_BRIND;
                 p->trailspace = 2;                  p->trailspace = 2;
         }          }
   
Line 570  post_HP(DECL_ARGS)
Line 582  post_HP(DECL_ARGS)
         switch (n->type) {          switch (n->type) {
         case (MAN_BODY):          case (MAN_BODY):
                 term_newln(p);                  term_newln(p);
                 p->flags &= ~TERMP_NOBREAK;                  p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND);
                 p->trailspace = 0;                  p->trailspace = 0;
                 p->offset = mt->offset;                  p->offset = mt->offset;
                 p->rmargin = p->maxrmargin;                  p->rmargin = p->maxrmargin;

Legend:
Removed from v.1.142  
changed lines
  Added in v.1.145

CVSweb