[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.14 and 1.17

version 1.14, 2017/06/24 14:38:33 version 1.17, 2018/12/16 00:17:02
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2010, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010,2014,2015,2017,2018 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 17 
Line 17 
 #include <sys/types.h>  #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <stddef.h>  #include <stdio.h>
   #include <string.h>
   
 #include "mandoc.h"  #include "mandoc.h"
 #include "roff.h"  #include "roff.h"
Line 111  roff_term_pre_ce(ROFF_TERM_ARGS)
Line 112  roff_term_pre_ce(ROFF_TERM_ARGS)
 static void  static void
 roff_term_pre_ft(ROFF_TERM_ARGS)  roff_term_pre_ft(ROFF_TERM_ARGS)
 {  {
         switch (*n->child->string) {          const char      *cp;
         case '4':  
         case '3':          cp = n->child->string;
         case 'B':          switch (mandoc_font(cp, (int)strlen(cp))) {
           case ESCAPE_FONTBOLD:
                 term_fontrepl(p, TERMFONT_BOLD);                  term_fontrepl(p, TERMFONT_BOLD);
                 break;                  break;
         case '2':          case ESCAPE_FONTITALIC:
         case 'I':  
                 term_fontrepl(p, TERMFONT_UNDER);                  term_fontrepl(p, TERMFONT_UNDER);
                 break;                  break;
         case 'P':          case ESCAPE_FONTBI:
                   term_fontrepl(p, TERMFONT_BI);
                   break;
           case ESCAPE_FONTPREV:
                 term_fontlast(p);                  term_fontlast(p);
                 break;                  break;
         case '1':          case ESCAPE_FONTROMAN:
         case 'C':          case ESCAPE_FONTCW:
         case 'R':  
                 term_fontrepl(p, TERMFONT_NONE);                  term_fontrepl(p, TERMFONT_NONE);
                 break;                  break;
         default:          default:

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.17

CVSweb