=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/roff.c,v retrieving revision 1.185 retrieving revision 1.186 diff -c -r1.185 -r1.186 *** src/usr.bin/mandoc/roff.c 2017/06/17 22:40:27 1.185 --- src/usr.bin/mandoc/roff.c 2017/06/17 23:06:43 1.186 *************** *** 1,4 **** ! /* $OpenBSD: roff.c,v 1.185 2017/06/17 22:40:27 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: roff.c,v 1.186 2017/06/17 23:06:43 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze *************** *** 1194,1201 **** } if (cp != NULL && isalnum((unsigned char)*cp) == 0 && ! strchr(cp, '$') != NULL) r->man->meta.rcsids |= 1 << os_e; /* Handle trailing whitespace. */ --- 1194,1205 ---- } if (cp != NULL && isalnum((unsigned char)*cp) == 0 && ! 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. */