[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.139 and 1.140

version 1.139, 2013/12/22 23:34:13 version 1.140, 2014/02/16 12:33:39
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 658  pre_IP(DECL_ARGS)
Line 658  pre_IP(DECL_ARGS)
                 return(0);                  return(0);
         case (MAN_BODY):          case (MAN_BODY):
                 p->offset = mt->offset + len;                  p->offset = mt->offset + len;
                 p->rmargin = p->maxrmargin;                  p->rmargin = p->maxrmargin > p->offset ?
                                   p->maxrmargin : p->offset;
                 break;                  break;
         default:          default:
                 break;                  break;
Line 748  pre_TP(DECL_ARGS)
Line 749  pre_TP(DECL_ARGS)
                 return(0);                  return(0);
         case (MAN_BODY):          case (MAN_BODY):
                 p->offset = mt->offset + len;                  p->offset = mt->offset + len;
                 p->rmargin = p->maxrmargin;                  p->rmargin = p->maxrmargin > p->offset ?
                                   p->maxrmargin : p->offset;
                 p->trailspace = 0;                  p->trailspace = 0;
                 p->flags &= ~TERMP_NOBREAK;                  p->flags &= ~TERMP_NOBREAK;
                 break;                  break;
Line 909  pre_RS(DECL_ARGS)
Line 911  pre_RS(DECL_ARGS)
                         sz = (size_t)ival;                          sz = (size_t)ival;
   
         mt->offset += sz;          mt->offset += sz;
         p->rmargin = p->maxrmargin;          p->offset = mt->offset;
         p->offset = mt->offset < p->rmargin ? mt->offset : p->rmargin;          p->rmargin = p->maxrmargin > p->offset ?
                           p->maxrmargin : p->offset;
   
         if (++mt->lmarginsz < MAXMARGINS)          if (++mt->lmarginsz < MAXMARGINS)
                 mt->lmargincur = mt->lmarginsz;                  mt->lmargincur = mt->lmarginsz;

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

CVSweb