=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mandoc.c,v retrieving revision 1.67 retrieving revision 1.68 diff -c -r1.67 -r1.68 *** src/usr.bin/mandoc/mandoc.c 2017/06/01 19:05:15 1.67 --- src/usr.bin/mandoc/mandoc.c 2017/06/02 19:21:03 1.68 *************** *** 1,7 **** ! /* $OpenBSD: mandoc.c,v 1.67 2017/06/01 19:05:15 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons ! * Copyright (c) 2011-2015 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above --- 1,7 ---- ! /* $OpenBSD: mandoc.c,v 1.68 2017/06/02 19:21:03 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons ! * Copyright (c) 2011-2015, 2017 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above *************** *** 173,179 **** ++*end; return ESCAPE_ERROR; } ! gly = (*start)[-1] == 'h' ? ESCAPE_HORIZ : ESCAPE_IGNORE; term = **start; *start = ++*end; break; --- 173,189 ---- ++*end; return ESCAPE_ERROR; } ! switch ((*start)[-1]) { ! case 'h': ! gly = ESCAPE_HORIZ; ! break; ! case 'l': ! gly = ESCAPE_HLINE; ! break; ! default: ! gly = ESCAPE_IGNORE; ! break; ! } term = **start; *start = ++*end; break;