summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2012-06-02 20:07:10 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2012-06-02 20:07:10 +0000
commit0410f2b4b627b157e42002c1b1552d982a1f4772 (patch)
treea9e89682067c146391192c38ba808954dc915100 /usr.bin/mandoc/man_term.c
parent938717f7d7c31fc3d29c88cc583d7a0d6e0267a2 (diff)
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 'usr.bin/mandoc/man_term.c')
-rw-r--r--usr.bin/mandoc/man_term.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c
index 7660ae8ef47..ba7ae8bfc5f 100644
--- a/usr.bin/mandoc/man_term.c
+++ b/usr.bin/mandoc/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.82 2012/02/26 19:41:27 schwarze Exp $ */
+/* $Id: man_term.c,v 1.83 2012/06/02 20:07:09 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -123,6 +123,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 */
};
@@ -239,7 +241,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;