version 1.118, 2020/10/24 22:57:39 |
version 1.120, 2022/04/13 13:19:34 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
|
* Copyright (c) 2011-2015, 2017-2022 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-2020 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 74 mandoc_font(const char *cp, int sz) |
|
Line 74 mandoc_font(const char *cp, int sz) |
|
case 'C': |
case 'C': |
switch (cp[1]) { |
switch (cp[1]) { |
case 'B': |
case 'B': |
return ESCAPE_FONTBOLD; |
return ESCAPE_FONTCB; |
case 'I': |
case 'I': |
return ESCAPE_FONTITALIC; |
return ESCAPE_FONTCI; |
case 'R': |
case 'R': |
case 'W': |
case 'W': |
return ESCAPE_FONTCW; |
return ESCAPE_FONTCR; |
default: |
default: |
return ESCAPE_ERROR; |
return ESCAPE_ERROR; |
} |
} |
Line 114 mandoc_escape(const char **end, const char **start, in |
|
Line 114 mandoc_escape(const char **end, const char **start, in |
|
* it only makes a difference in copy mode. |
* it only makes a difference in copy mode. |
*/ |
*/ |
|
|
if (**end == 'E') |
while (**end == 'E') |
++*end; |
++*end; |
|
|
/* |
/* |