From af2c97c7b003aede133aa66677d5d4c5bfc61c07 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 24 Jan 2015 02:41:49 +0000 Subject: 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). --- roff.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index d653444a..f940913b 100644 --- a/roff.c +++ b/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.255 2015/01/23 20:18:40 schwarze Exp $ */ +/* $Id: roff.c,v 1.256 2015/01/24 02:41:49 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -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 }, -- cgit v1.2.3-56-ge451