summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-24 02:41:49 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-24 02:41:49 +0000
commit46720e11f3c6e90c1850aaeb920a5a9b9b6eb659 (patch)
tree766adc3a89b9e019a0358906bfd706a7fbe2163c /roff.c
parent9c71b16d77c19d5b2623befffcb1f7a489960bcc (diff)
downloadmandoc-46720e11f3c6e90c1850aaeb920a5a9b9b6eb659.tar.gz
Strangely, ignoring the roff(7) .na request was implemented in the man(7)
parser. Simplify the code by moving it into the roff(7) parser, also making it work for mdoc(7).
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/roff.c b/roff.c
index 4ef35b08..b6874ea0 100644
--- a/roff.c
+++ b/roff.c
@@ -179,7 +179,7 @@ enum rofft {
ROFF_minss,
ROFF_mk,
ROFF_mso,
- /* MAN_na; ignored in mdoc(7) */
+ ROFF_na,
ROFF_ne,
/* MAN_nf; ignored in mdoc(7) */
ROFF_nh,
@@ -580,6 +580,7 @@ static struct roffmac roffs[ROFF_MAX] = {
{ "minss", roff_line_ignore, NULL, NULL, 0, NULL },
{ "mk", roff_line_ignore, NULL, NULL, 0, NULL },
{ "mso", roff_insec, NULL, NULL, 0, NULL },
+ { "na", roff_line_ignore, NULL, NULL, 0, NULL },
{ "ne", roff_line_ignore, NULL, NULL, 0, NULL },
{ "nh", roff_line_ignore, NULL, NULL, 0, NULL },
{ "nhychar", roff_line_ignore, NULL, NULL, 0, NULL },