diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-10 12:03:29 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-10 12:03:29 +0000 |
commit | 0be12c72e2c3f5d55746f1f8b222ec058a0fa10b (patch) | |
tree | 253945ea2e9f939d7d80e0039d89124851301ba3 | |
parent | 876f41fda129a014ca0587ee5be314bcbf7bb683 (diff) | |
download | mandoc-0be12c72e2c3f5d55746f1f8b222ec058a0fa10b.tar.gz |
Noted that -man text decoration is re-set when exiting a macro invocation.
-rw-r--r-- | man.7 | 7 | ||||
-rw-r--r-- | man_html.c | 3 | ||||
-rw-r--r-- | man_term.c | 6 |
3 files changed, 15 insertions, 1 deletions
@@ -137,6 +137,13 @@ for arbitrary-digit numerals: .D1 \es[+10]much bigger\es[-10] .D1 \es+(10much bigger\es-(10 .D1 \es+'100'much much bigger\es-'100' +.Pp +Both +.Sq \es +and +.Sq \ef +attributes are forgotten when exiting a subsequent (or current) macro +invocation. . . .Ss Whitespace @@ -211,6 +211,9 @@ print_man_node(MAN_ARGS) default: if (mans[n->tok].post) (*mans[n->tok].post)(m, n, h); + + /* Reset metafont upon exit from macro. */ + h->metafont = 0; break; } } @@ -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; + } } |