=================================================================== RCS file: /cvs/mandoc/man.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -p -r1.59 -r1.60 --- mandoc/man.c 2010/03/29 10:10:35 1.59 +++ mandoc/man.c 2010/04/08 07:53:01 1.60 @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.59 2010/03/29 10:10:35 kristaps Exp $ */ +/* $Id: man.c,v 1.60 2010/04/08 07:53:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -53,6 +53,7 @@ const char *const __man_merrnames[WERRMAX] = { "invalid nesting of roff declarations", /* WROFFNEST */ "scope in roff instructions broken", /* WROFFSCOPE */ "document title should be uppercase", /* WTITLECASE */ + "deprecated comment style", /* WBADCOMMENT */ }; const char *const __man_macronames[MAN_MAX] = { @@ -377,6 +378,11 @@ man_ptext(struct man *m, int line, char *buf) { int i, j; char sv; + + /* Ignore bogus comments. */ + + if ('\\' == buf[0] && '.' == buf[1] && '\"' == buf[2]) + return(man_pwarn(m, line, 0, WBADCOMMENT)); /* Literal free-form text whitespace is preserved. */