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

Diff for /src/usr.bin/mandoc/tree.c between version 1.56 and 1.57

version 1.56, 2020/04/08 11:54:14 version 1.57, 2021/08/10 12:36:42
Line 1 
Line 1 
 /* $OpenBSD$ */  /* $OpenBSD$ */
 /*  /*
  * Copyright (c) 2013-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org>  
  * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
    * Copyright (c) 2013-2015, 2017-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 469 
Line 469 
                         else {                          else {
                                 printf("%d", cp->col);                                  printf("%d", cp->col);
                                 print_cellt(dp->layout->pos);                                  print_cellt(dp->layout->pos);
                                 if (cp->flags & TBL_CELL_BOLD)                                  switch (cp->font) {
                                   case ESCAPE_FONTBOLD:
                                         putchar('b');                                          putchar('b');
                                 if (cp->flags & TBL_CELL_ITALIC)                                          break;
                                   case ESCAPE_FONTITALIC:
                                         putchar('i');                                          putchar('i');
                                           break;
                                   case ESCAPE_FONTBI:
                                           fputs("bi", stdout);
                                           break;
                                   case ESCAPE_FONTCR:
                                           putchar('c');
                                           break;
                                   case ESCAPE_FONTCB:
                                           fputs("cb", stdout);
                                           break;
                                   case ESCAPE_FONTCI:
                                           fputs("ci", stdout);
                                           break;
                                   default:
                                           abort();
                                   }
                                 if (cp->flags & TBL_CELL_TALIGN)                                  if (cp->flags & TBL_CELL_TALIGN)
                                         putchar('t');                                          putchar('t');
                                 if (cp->flags & TBL_CELL_UP)                                  if (cp->flags & TBL_CELL_UP)

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57