=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.334 retrieving revision 1.335 diff -u -p -r1.334 -r1.335 --- mandoc/roff.c 2018/08/18 21:37:01 1.334 +++ mandoc/roff.c 2018/08/18 22:05:43 1.335 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.334 2018/08/18 21:37:01 schwarze Exp $ */ +/* $Id: roff.c,v 1.335 2018/08/18 22:05:43 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -1214,7 +1214,8 @@ roff_res(struct roff *r, struct buf *buf, int ln, int /* Discard normal comments. */ - while (stesc > start && stesc[-1] == ' ') + while (stesc > start && stesc[-1] == ' ' && + (stesc == start + 1 || stesc[-2] != '\\')) stesc--; *stesc = '\0'; break;