=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.313 retrieving revision 1.314 diff -u -p -r1.313 -r1.314 --- mandoc/roff.c 2017/06/17 22:43:14 1.313 +++ mandoc/roff.c 2017/06/17 23:07:00 1.314 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.313 2017/06/17 22:43:14 schwarze Exp $ */ +/* $Id: roff.c,v 1.314 2017/06/17 23:07:00 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze @@ -1196,8 +1196,12 @@ roff_res(struct roff *r, struct buf *buf, int ln, int } if (cp != NULL && isalnum((unsigned char)*cp) == 0 && - strchr(cp, '$') != NULL) + strchr(cp, '$') != NULL) { + if (r->man->meta.rcsids & (1 << os_e)) + mandoc_msg(MANDOCERR_RCS_REP, r->parse, + ln, stesc + 1 - buf->buf, stesc + 1); r->man->meta.rcsids |= 1 << os_e; + } /* Handle trailing whitespace. */