[BACK]Return to tbl_term.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/tbl_term.c between version 1.62 and 1.63

version 1.62, 2020/10/25 18:21:07 version 1.63, 2021/08/10 12:36:42
Line 1 
Line 1 
 /*      $OpenBSD$ */  /*      $OpenBSD$ */
 /*  /*
  * Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011-2020 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2011-2021 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 921 
Line 921 
         int              prev_font;          int              prev_font;
   
         prev_font = tp->fonti;          prev_font = tp->fonti;
         if (dp->layout->flags & TBL_CELL_BOLD)          switch (dp->layout->font) {
                 term_fontpush(tp, TERMFONT_BOLD);                  case ESCAPE_FONTBI:
         else if (dp->layout->flags & TBL_CELL_ITALIC)                          term_fontpush(tp, TERMFONT_BI);
                 term_fontpush(tp, TERMFONT_UNDER);                          break;
                   case ESCAPE_FONTBOLD:
                   case ESCAPE_FONTCB:
                           term_fontpush(tp, TERMFONT_BOLD);
                           break;
                   case ESCAPE_FONTITALIC:
                   case ESCAPE_FONTCI:
                           term_fontpush(tp, TERMFONT_UNDER);
                           break;
                   case ESCAPE_FONTROMAN:
                   case ESCAPE_FONTCR:
                           break;
                   default:
                           abort();
           }
   
         term_word(tp, dp->string);          term_word(tp, dp->string);
   

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63