version 1.67, 2013/06/20 22:39:30 |
version 1.68, 2013/08/08 20:07:47 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011, 2012, 2013 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 296 mandoc_escape(const char **end, const char **start, in |
|
Line 296 mandoc_escape(const char **end, const char **start, in |
|
|
|
switch (gly) { |
switch (gly) { |
case (ESCAPE_FONT): |
case (ESCAPE_FONT): |
/* |
if (2 == *sz) { |
* Pretend that the constant-width font modes are the |
if ('C' == **start) { |
* same as the regular font modes. |
/* |
*/ |
* Treat constant-width font modes |
if (2 == *sz && 'C' == **start) { |
* just like regular font modes. |
(*start)++; |
*/ |
(*sz)--; |
(*start)++; |
|
(*sz)--; |
|
} else { |
|
if ('B' == (*start)[0] && 'I' == (*start)[1]) |
|
gly = ESCAPE_FONTBI; |
|
break; |
|
} |
} else if (1 != *sz) |
} else if (1 != *sz) |
break; |
break; |
|
|