=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.333 retrieving revision 1.334 diff -u -p -r1.333 -r1.334 --- mandoc/roff.c 2018/08/18 02:08:27 1.333 +++ mandoc/roff.c 2018/08/18 21:37:01 1.334 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.333 2018/08/18 02:08:27 schwarze Exp $ */ +/* $Id: roff.c,v 1.334 2018/08/18 21:37:01 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -1205,7 +1205,14 @@ roff_res(struct roff *r, struct buf *buf, int ln, int r->man->next = ROFF_NEXT_SIBLING; } - /* Discard comments. */ + /* Line continuation with comment. */ + + if (stesc[1] == '#') { + *stesc = '\0'; + return ROFF_APPEND; + } + + /* Discard normal comments. */ while (stesc > start && stesc[-1] == ' ') stesc--;