diff options
author | 2012-06-02 20:07:09 +0000 | |
---|---|---|
committer | 2012-06-02 20:07:09 +0000 | |
commit | 8d0fa220a9f3f8678da39a869f6716a46ae538b0 (patch) | |
tree | 595f60b77a7788b4c9bfa2d59f5b510d46a1d063 /usr.bin/mandoc/man_html.c | |
parent | Add AMT ports to /etc/services so they're entered in net.inet.tcp.baddynamic (diff) | |
download | wireguard-openbsd-8d0fa220a9f3f8678da39a869f6716a46ae538b0.tar.xz wireguard-openbsd-8d0fa220a9f3f8678da39a869f6716a46ae538b0.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 'usr.bin/mandoc/man_html.c')
-rw-r--r-- | usr.bin/mandoc/man_html.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c index b799ed4c785..e79f976549b 100644 --- a/usr.bin/mandoc/man_html.c +++ b/usr.bin/mandoc/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.46 2012/02/26 19:41:27 schwarze Exp $ */ +/* $Id: man_html.c,v 1.47 2012/06/02 20:07:09 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -109,6 +109,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 */ }; /* @@ -634,7 +636,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 |