aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-09-07 00:21:53 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-09-07 00:21:53 +0000
commit3e8df8047cc27e09a5bd5c122feec093e776b9fd (patch)
treec219e9433b50dcd6ca4b5f779fb76b0cbef6b737
parentd54ae4264ccb3f0ca17f431c6362a41519e79ec5 (diff)
downloadmandoc-3e8df8047cc27e09a5bd5c122feec093e776b9fd.tar.gz
mandoc-3e8df8047cc27e09a5bd5c122feec093e776b9fd.tar.zst
mandoc-3e8df8047cc27e09a5bd5c122feec093e776b9fd.zip
Parse and ignore the .pl (page length) request;
Daniel Levai reports that Slackware Linux uses this.
-rw-r--r--roff.79
-rw-r--r--roff.c4
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 <kristaps@bsd.lv>
.\" Copyright (c) 2010, 2011, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 },