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

Diff for /mandoc/roff_term.c between version 1.22 and 1.25

version 1.22, 2020/09/03 20:43:15 version 1.25, 2023/04/28 19:11:04
Line 1 
Line 1 
 /* $OpenBSD$ */  /* $Id$ */
 /*  /*
  * Copyright (c) 2010,2014,2015,2017-2020 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010,2014,2015,2017-2020 Ingo Schwarze <schwarze@openbsd.org>
  *   *
Line 112  roff_term_pre_ft(ROFF_TERM_ARGS)
Line 112  roff_term_pre_ft(ROFF_TERM_ARGS)
         cp = n->child->string;          cp = n->child->string;
         switch (mandoc_font(cp, (int)strlen(cp))) {          switch (mandoc_font(cp, (int)strlen(cp))) {
         case ESCAPE_FONTBOLD:          case ESCAPE_FONTBOLD:
           case ESCAPE_FONTCB:
                 term_fontrepl(p, TERMFONT_BOLD);                  term_fontrepl(p, TERMFONT_BOLD);
                 break;                  break;
         case ESCAPE_FONTITALIC:          case ESCAPE_FONTITALIC:
           case ESCAPE_FONTCI:
                 term_fontrepl(p, TERMFONT_UNDER);                  term_fontrepl(p, TERMFONT_UNDER);
                 break;                  break;
         case ESCAPE_FONTBI:          case ESCAPE_FONTBI:
Line 124  roff_term_pre_ft(ROFF_TERM_ARGS)
Line 126  roff_term_pre_ft(ROFF_TERM_ARGS)
                 term_fontlast(p);                  term_fontlast(p);
                 break;                  break;
         case ESCAPE_FONTROMAN:          case ESCAPE_FONTROMAN:
         case ESCAPE_FONTCW:          case ESCAPE_FONTCR:
                 term_fontrepl(p, TERMFONT_NONE);                  term_fontrepl(p, TERMFONT_NONE);
                 break;                  break;
         default:          default:
Line 173  roff_term_pre_po(ROFF_TERM_ARGS)
Line 175  roff_term_pre_po(ROFF_TERM_ARGS)
         } else          } else
                 ponew = polast;                  ponew = polast;
   
         /* Remeber both the previous and the newly requested offset. */          /* Remember both the previous and the newly requested offset. */
         polast = po;          polast = po;
         po = ponew;          po = ponew;
   
         /* Truncate to the range [-offset, 60], remember, and apply it. */          /* Truncate to the range [-offset, 60], remember, and apply it. */
         pouse = po >= 60 ? 60 :          pouse = po >= 60 ? 60 :
             po < -(int)p->tcol->offset ? -p->tcol->offset : po;              po < -(int)p->tcol->offset ? -(int)p->tcol->offset : po;
         p->tcol->offset += pouse;          p->tcol->offset += pouse;
 }  }
   

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.25

CVSweb