summaryrefslogtreecommitdiffstats
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
commitef0c12c03523dc1118e1aedf95ea477327b2c1cd (patch)
treedd85261fbf8da8aaf518c91af5859f0526b59a79
parenta0288e04b6e7f93a95d0e8fde9f81cad5c0318f4 (diff)
downloadmandoc-ef0c12c03523dc1118e1aedf95ea477327b2c1cd.tar.gz
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.714
-rw-r--r--roff.c6
2 files changed, 20 insertions, 0 deletions
diff --git a/roff.7 b/roff.7
index 2b323442..0cea7f84 100644
--- a/roff.7
+++ b/roff.7
@@ -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 73365293..b885a5f2 100644
--- a/roff.c
+++ b/roff.c
@@ -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 },