summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-06-02 20:16:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-06-02 20:16:23 +0000
commit16e0f8afee6d795cdd67eda6de360fc6ae273e59 (patch)
treebefec749f81f3c167017aa93477adf2180c1b8bf /man_term.c
parentfcb1831f437dffe12c02a91668195e01a11fdc86 (diff)
downloadmandoc-16e0f8afee6d795cdd67eda6de360fc6ae273e59.tar.gz
Minimal implementation of .EX and .EE for GNU compatibility.
Do not use this, it is not portable and only defined in esr's man-ext. For example, sox(1) wants these macros.
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index 117e5b37..996e507b 100644
--- a/man_term.c
+++ b/man_term.c
@@ -127,6 +127,8 @@ static const struct termact termacts[MAN_MAX] = {
{ pre_in, NULL, MAN_NOTEXT }, /* in */
{ pre_ft, NULL, MAN_NOTEXT }, /* ft */
{ pre_OP, NULL, 0 }, /* OP */
+ { pre_literal, NULL, 0 }, /* EX */
+ { pre_literal, NULL, 0 }, /* EE */
};
@@ -243,7 +245,7 @@ pre_literal(DECL_ARGS)
term_newln(p);
- if (MAN_nf == n->tok)
+ if (MAN_nf == n->tok || MAN_EX == n->tok)
mt->fl |= MANT_LITERAL;
else
mt->fl &= ~MANT_LITERAL;