summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-10 12:03:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-10 12:03:29 +0000
commit0be12c72e2c3f5d55746f1f8b222ec058a0fa10b (patch)
tree253945ea2e9f939d7d80e0039d89124851301ba3 /man_term.c
parent876f41fda129a014ca0587ee5be314bcbf7bb683 (diff)
downloadmandoc-0be12c72e2c3f5d55746f1f8b222ec058a0fa10b.tar.gz
Noted that -man text decoration is re-set when exiting a macro invocation.
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index ed252ba9..f1d39f24 100644
--- a/man_term.c
+++ b/man_term.c
@@ -876,9 +876,13 @@ print_man_node(DECL_ARGS)
if (c && n->child)
print_man_body(p, mt, n->child, m);
- if (MAN_TEXT != n->type)
+ if (MAN_TEXT != n->type) {
if (termacts[n->tok].post)
(*termacts[n->tok].post)(p, mt, n, m);
+
+ /* Reset metafont upon exit from macro. */
+ p->metafont = 0;
+ }
}