=================================================================== RCS file: /cvs/mandoc/man.c,v retrieving revision 1.136 retrieving revision 1.138 diff -u -p -r1.136 -r1.138 --- mandoc/man.c 2014/08/01 17:27:44 1.136 +++ mandoc/man.c 2014/08/10 23:54:41 1.138 @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.136 2014/08/01 17:27:44 schwarze Exp $ */ +/* $Id: man.c,v 1.138 2014/08/10 23:54:41 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -16,9 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -186,10 +184,11 @@ man_node_append(struct man *man, struct man_node *p) assert(p->parent); p->parent->nchild++; - if ( ! man_valid_pre(man, p)) - return(0); - switch (p->type) { + case MAN_BLOCK: + if (p->tok == MAN_SH || p->tok == MAN_SS) + man->flags &= ~MAN_LITERAL; + break; case MAN_HEAD: assert(MAN_BLOCK == p->parent->type); p->parent->head = p;