summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
Diffstat (limited to 'man.c')
-rw-r--r--man.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/man.c b/man.c
index e3bedb7a..7e04d1f2 100644
--- a/man.c
+++ b/man.c
@@ -186,10 +186,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;