X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/031d1f01fc925d18b3af6e51565d51044023590b..767d17838a61fbf6fd09370c4f891c1d6aaccca4:/mandoc.c diff --git a/mandoc.c b/mandoc.c index 4975df00..a61d2331 100644 --- a/mandoc.c +++ b/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.90 2015/01/01 18:11:45 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.91 2015/01/21 20:33:25 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015 Ingo Schwarze @@ -156,16 +156,18 @@ mandoc_escape(const char **end, const char **start, int *sz) /* FALLTHROUGH */ case 'D': /* FALLTHROUGH */ - case 'o': - /* FALLTHROUGH */ case 'R': /* FALLTHROUGH */ case 'X': /* FALLTHROUGH */ case 'Z': - if ('\0' == **start) - return(ESCAPE_ERROR); gly = ESCAPE_IGNORE; + /* FALLTHROUGH */ + case 'o': + if (**start == '\0') + return(ESCAPE_ERROR); + if (gly == ESCAPE_ERROR) + gly = ESCAPE_OVERSTRIKE; term = **start; *start = ++*end; break;