aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-01-25 01:12:02 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-01-25 01:12:02 +0000
commit6562230bbf1d7779c2751e91aea8485b983ab84e (patch)
tree2dcb814a3418a03d6158827bc4985594d577241e
parent38465f0da4d0ab54a8eacc46467083e9048a6f8c (diff)
downloadmandoc-6562230bbf1d7779c2751e91aea8485b983ab84e.tar.gz
mandoc-6562230bbf1d7779c2751e91aea8485b983ab84e.tar.zst
mandoc-6562230bbf1d7779c2751e91aea8485b983ab84e.zip
Ignore .ns (no-space mode), .ps (change point size), .ta (tab control)
for now. All of these just cause a bit too much or too little whitespace, but no serious formatting problems. Triggered by reports from brad@.
-rw-r--r--roff.716
-rw-r--r--roff.c8
2 files changed, 22 insertions, 2 deletions
diff --git a/roff.7 b/roff.7
index 480fdb54..1f55810d 100644
--- a/roff.7
+++ b/roff.7
@@ -1,4 +1,4 @@
-.\" $Id: roff.7,v 1.25 2011/01/25 00:40:14 schwarze Exp $
+.\" $Id: roff.7,v 1.26 2011/01/25 01:12:02 schwarze Exp $
.\"
.\" Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -537,6 +537,16 @@ section with the
.Cm \&Sh
macro will reset this register.
.El
+.Ss \&ns
+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 \&ps
+Change point size.
+This line-scoped request is intended to take one numerical argument.
+Currently, it is ignored including its arguments,
+and the number of arguments is not checked.
.Ss \&so
Include a source file.
Its syntax is as follows:
@@ -554,6 +564,10 @@ only accepts relative paths not containing the strings
.Qq ../
and
.Qq /.. .
+.Ss \&ta
+Set tab stops.
+This line-scoped request can take an arbitrary number of arguments.
+Currently, it is ignored including its arguments.
.Ss \&tr
Output character translation.
This request is intended to have one argument,
diff --git a/roff.c b/roff.c
index ad7a08ae..5d3f1062 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.123 2011/01/22 13:16:02 schwarze Exp $ */
+/* $Id: roff.c,v 1.124 2011/01/25 01:12:02 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -55,8 +55,11 @@ enum rofft {
ROFF_ne,
ROFF_nh,
ROFF_nr,
+ ROFF_ns,
+ ROFF_ps,
ROFF_rm,
ROFF_so,
+ ROFF_ta,
ROFF_tr,
ROFF_TS,
ROFF_TE,
@@ -177,8 +180,11 @@ static struct roffmac roffs[ROFF_MAX] = {
{ "ne", roff_line_ignore, NULL, NULL, 0, NULL },
{ "nh", roff_line_ignore, NULL, NULL, 0, NULL },
{ "nr", roff_nr, NULL, NULL, 0, NULL },
+ { "ns", roff_line_ignore, NULL, NULL, 0, NULL },
+ { "ps", roff_line_ignore, NULL, NULL, 0, NULL },
{ "rm", roff_rm, NULL, NULL, 0, NULL },
{ "so", roff_so, NULL, NULL, 0, NULL },
+ { "ta", roff_line_ignore, NULL, NULL, 0, NULL },
{ "tr", roff_line_ignore, NULL, NULL, 0, NULL },
{ "TS", roff_TS, NULL, NULL, 0, NULL },
{ "TE", roff_TE, NULL, NULL, 0, NULL },