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

Diff for /src/usr.bin/mandoc/html.c between version 1.144 and 1.145

version 1.144, 2021/05/22 05:49:32 version 1.145, 2021/08/10 12:36:42
Line 1 
Line 1 
 /* $OpenBSD$ */  /* $OpenBSD$ */
 /*  /*
  * Copyright (c) 2011-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org>  
  * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
    * Copyright (c) 2011-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 238 
Line 238 
         case ESCAPE_FONTITALIC:          case ESCAPE_FONTITALIC:
         case ESCAPE_FONTBOLD:          case ESCAPE_FONTBOLD:
         case ESCAPE_FONTBI:          case ESCAPE_FONTBI:
         case ESCAPE_FONTCW:  
         case ESCAPE_FONTROMAN:          case ESCAPE_FONTROMAN:
           case ESCAPE_FONTCR:
           case ESCAPE_FONTCB:
           case ESCAPE_FONTCI:
                 break;                  break;
         case ESCAPE_FONT:          case ESCAPE_FONT:
                 font = ESCAPE_FONTROMAN;                  font = ESCAPE_FONTROMAN;
Line 270 
Line 272 
                 h->metaf = print_otag(h, TAG_B, "");                  h->metaf = print_otag(h, TAG_B, "");
                 print_otag(h, TAG_I, "");                  print_otag(h, TAG_I, "");
                 break;                  break;
         case ESCAPE_FONTCW:          case ESCAPE_FONTCR:
                 h->metaf = print_otag(h, TAG_SPAN, "c", "Li");                  h->metaf = print_otag(h, TAG_SPAN, "c", "Li");
                 break;                  break;
           case ESCAPE_FONTCB:
                   h->metaf = print_otag(h, TAG_SPAN, "c", "Li");
                   print_otag(h, TAG_B, "");
                   break;
           case ESCAPE_FONTCI:
                   h->metaf = print_otag(h, TAG_SPAN, "c", "Li");
                   print_otag(h, TAG_I, "");
                   break;
         default:          default:
                 break;                  break;
         }          }
Line 501 
Line 511 
                 case ESCAPE_FONTBOLD:                  case ESCAPE_FONTBOLD:
                 case ESCAPE_FONTITALIC:                  case ESCAPE_FONTITALIC:
                 case ESCAPE_FONTBI:                  case ESCAPE_FONTBI:
                 case ESCAPE_FONTCW:  
                 case ESCAPE_FONTROMAN:                  case ESCAPE_FONTROMAN:
                   case ESCAPE_FONTCR:
                   case ESCAPE_FONTCB:
                   case ESCAPE_FONTCI:
                         if (0 == norecurse) {                          if (0 == norecurse) {
                                 h->flags |= HTML_NOSPACE;                                  h->flags |= HTML_NOSPACE;
                                 if (html_setfont(h, esc))                                  if (html_setfont(h, esc))

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145