aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_html.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_html.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_html.c')
-rw-r--r--man_html.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index a4f64c5e..73709b82 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.87 2012/05/27 17:39:28 schwarze Exp $ */
+/* $Id: man_html.c,v 1.88 2012/06/02 20:16:23 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -113,6 +113,8 @@ static const struct htmlman mans[MAN_MAX] = {
{ man_in_pre, NULL }, /* in */
{ man_ign_pre, NULL }, /* ft */
{ man_OP_pre, NULL }, /* OP */
+ { man_literal_pre, NULL }, /* EX */
+ { man_literal_pre, NULL }, /* EE */
};
/*
@@ -638,7 +640,7 @@ static int
man_literal_pre(MAN_ARGS)
{
- if (MAN_nf != n->tok) {
+ if (MAN_fi == n->tok || MAN_EE == n->tok) {
print_otag(h, TAG_BR, 0, NULL);
mh->fl &= ~MANH_LITERAL;
} else