diff options
author | 2015-01-16 16:53:49 +0000 | |
---|---|---|
committer | 2015-01-16 16:53:49 +0000 | |
commit | e48e269e1bbe5594d18319db436164150a8fa7bc (patch) | |
tree | 9ce6cfc4c32b2cf89a99ff5bd0e957e69233c686 | |
parent | 6b618405d781b6a4a5425bf52419f31f0362fcf1 (diff) | |
download | mandoc-e48e269e1bbe5594d18319db436164150a8fa7bc.tar.gz mandoc-e48e269e1bbe5594d18319db436164150a8fa7bc.tar.zst mandoc-e48e269e1bbe5594d18319db436164150a8fa7bc.zip |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.249 2015/01/14 22:58:16 schwarze Exp $ */ +/* $Id: roff.c,v 1.250 2015/01/16 16:53:49 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -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 }, }; |