aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit53b5d29222e1768659eb3f30de4c87a1be30c59c (patch)
treea2d4c33aacf0c8bed2ecb1732097091acc5db409 /man_term.c
parent74995844dac462420bc32ba558372fbb8a2450d6 (diff)
downloadmandoc-53b5d29222e1768659eb3f30de4c87a1be30c59c.tar.gz
mandoc-53b5d29222e1768659eb3f30de4c87a1be30c59c.tar.zst
mandoc-53b5d29222e1768659eb3f30de4c87a1be30c59c.zip
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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index 2e65d09f..5281143d 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.128 2012/05/27 17:39:28 schwarze Exp $ */
+/* $Id: man_term.c,v 1.129 2012/06/02 20:16:23 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;