summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-16 16:53:49 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-16 16:53:49 +0000
commitcc7ec05a25c9d24fc87089bd37a6aa1fd17568eb (patch)
tree58569132c57e3ac41c54d9d4c5875b4316496f89
parent581eba212eeec68331e4aa4a904d7c2d72bac114 (diff)
downloadmandoc-cc7ec05a25c9d24fc87089bd37a6aa1fd17568eb.tar.gz
Parse and ignore .IX (generate index entry) macros because pod2man(1)
emits them, by default without defining them, relying on the roff(7) quirk that undefined macros have no effect.
-rw-r--r--roff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/roff.c b/roff.c
index 1b106da8..1ae3f6b9 100644
--- a/roff.c
+++ b/roff.c
@@ -75,6 +75,7 @@ enum rofft {
ROFF_T_,
ROFF_EQ,
ROFF_EN,
+ ROFF_IX,
ROFF_cblock,
ROFF_USERDEF,
ROFF_MAX
@@ -274,6 +275,7 @@ static struct roffmac roffs[ROFF_MAX] = {
{ "T&", roff_T_, NULL, NULL, 0, NULL },
{ "EQ", roff_EQ, NULL, NULL, 0, NULL },
{ "EN", roff_EN, NULL, NULL, 0, NULL },
+ { "IX", roff_line_ignore, NULL, NULL, 0, NULL },
{ ".", roff_cblock, NULL, NULL, 0, NULL },
{ NULL, roff_userdef, NULL, NULL, 0, NULL },
};