=================================================================== RCS file: /cvs/mandoc/man.c,v retrieving revision 1.129 retrieving revision 1.130 diff -u -p -r1.129 -r1.130 --- mandoc/man.c 2014/04/20 16:46:04 1.129 +++ mandoc/man.c 2014/05/07 14:14:17 1.130 @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.129 2014/04/20 16:46:04 schwarze Exp $ */ +/* $Id: man.c,v 1.130 2014/05/07 14:14:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -595,9 +595,12 @@ man_pmacro(struct man *man, int ln, char *buf, int off /* In quick mode (for mandocdb), abort after the NAME section. */ - if (man->quick && MAN_SH == tok && - strcmp(man->last->prev->child->string, "NAME")) - return(2); + if (man->quick && MAN_SH == tok) { + n = man->last; + if (MAN_BODY == n->type && + strcmp(n->prev->child->string, "NAME")) + return(2); + } /* * We weren't in a block-line scope when entering the