From 3e8df8047cc27e09a5bd5c122feec093e776b9fd Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 7 Sep 2014 00:21:53 +0000 Subject: Parse and ignore the .pl (page length) request; Daniel Levai reports that Slackware Linux uses this. --- roff.7 | 9 +++++++-- roff.c | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/roff.7 b/roff.7 index e1783d2f..6ac48a7e 100644 --- a/roff.7 +++ b/roff.7 @@ -1,4 +1,4 @@ -.\" $Id: roff.7,v 1.57 2014/08/14 20:27:45 schwarze Exp $ +.\" $Id: roff.7,v 1.58 2014/09/07 00:21:53 schwarze Exp $ .\" .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons .\" Copyright (c) 2010, 2011, 2013, 2014 Ingo Schwarze @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 14 2014 $ +.Dd $Mdocdate: September 7 2014 $ .Dt ROFF 7 .Os .Sh NAME @@ -935,6 +935,11 @@ Turn on no-space mode. This line-scoped request is intended to take no arguments. Currently, it is ignored including its arguments, and the number of arguments is not checked. +.Ss \&pl +Change page length. +This line-scoped request is intended to take one height argument. +Currently, it is ignored including its arguments, +and the number of arguments is not checked. .Ss \&ps Change point size. This line-scoped request is intended to take one numerical argument. diff --git a/roff.c b/roff.c index fac9ffa3..5fcde6e4 100644 --- a/roff.c +++ b/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.228 2014/09/06 23:24:32 schwarze Exp $ */ +/* $Id: roff.c,v 1.229 2014/09/07 00:21:53 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -60,6 +60,7 @@ enum rofft { ROFF_nh, ROFF_nr, ROFF_ns, + ROFF_pl, ROFF_ps, ROFF_rm, ROFF_rr, @@ -256,6 +257,7 @@ static struct roffmac roffs[ROFF_MAX] = { { "nh", roff_line_ignore, NULL, NULL, 0, NULL }, { "nr", roff_nr, NULL, NULL, 0, NULL }, { "ns", roff_line_ignore, NULL, NULL, 0, NULL }, + { "pl", roff_line_ignore, NULL, NULL, 0, NULL }, { "ps", roff_line_ignore, NULL, NULL, 0, NULL }, { "rm", roff_rm, NULL, NULL, 0, NULL }, { "rr", roff_rr, NULL, NULL, 0, NULL }, -- cgit v1.2.3