summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-23 20:18:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-23 20:18:40 +0000
commitdf9b6ffd29aecb2057cdb3cde72bc270eb6d0bc4 (patch)
treeace9d605ff8ea4b8e2ecd0d2b9e9c545303b5e48
parent5cdc25331345b85829cb16411bb48b213b6ea7b1 (diff)
downloadmandoc-df9b6ffd29aecb2057cdb3cde72bc270eb6d0bc4.tar.gz
While ignoring the .ta (set tab stops) and .ti (temp indent) requests
is sometimes harmless, it often causes seriously ugly output, so flag these requests as unsupported rather than ignoring them. Discussed with naddy@.
-rw-r--r--roff.78
-rw-r--r--roff.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/roff.7 b/roff.7
index 5456bdc8..efe53e74 100644
--- a/roff.7
+++ b/roff.7
@@ -1439,7 +1439,7 @@ Retrieve the bounding box of a PostScript file.
Currently unsupported.
.Ss \&pshape
Set a special shape for the current paragraph.
-This is a Heirloom extension and currently ignored.
+This is a Heirloom extension and currently unsupported.
.Ss \&pso
Include output of a shell command.
Ignored because insecure.
@@ -1572,7 +1572,7 @@ See
.Ss \&ta
Set tab stops.
Takes an arbitrary number of arguments.
-Currently ignored.
+Currently unsupported.
.Ss \&tc
Change tab repetion character.
Currently unsupported.
@@ -1582,7 +1582,7 @@ See
.Sx \&TS .
.Ss \&ti
Temporary indent.
-Currently ignored.
+Currently unsupported.
.Ss \&tkf
Enable track kerning for a font.
Currently ignored.
@@ -1720,7 +1720,7 @@ Each number may be followed by one optional scaling unit described below
The following equations hold:
.Bd -literal -offset indent
1i = 6v = 6P = 10m = 10n = 72p = 1000M = 240u = 240
-254c = 100i = 24000u = 24000
+254c = 100i = 24000u = 24000
1f = 65536u = 65536
.Ed
.Pp
diff --git a/roff.c b/roff.c
index a17d168f..4ef35b08 100644
--- a/roff.c
+++ b/roff.c
@@ -608,7 +608,7 @@ static struct roffmac roffs[ROFF_MAX] = {
{ "po", roff_line_ignore, NULL, NULL, 0, NULL },
{ "ps", roff_line_ignore, NULL, NULL, 0, NULL },
{ "psbb", roff_unsupp, NULL, NULL, 0, NULL },
- { "pshape", roff_line_ignore, NULL, NULL, 0, NULL },
+ { "pshape", roff_unsupp, NULL, NULL, 0, NULL },
{ "pso", roff_insec, NULL, NULL, 0, NULL },
{ "ptr", roff_line_ignore, NULL, NULL, 0, NULL },
{ "pvs", roff_line_ignore, NULL, NULL, 0, NULL },
@@ -640,11 +640,11 @@ static struct roffmac roffs[ROFF_MAX] = {
{ "sv", roff_line_ignore, NULL, NULL, 0, NULL },
{ "sy", roff_insec, NULL, NULL, 0, NULL },
{ "T&", roff_T_, NULL, NULL, 0, NULL },
- { "ta", roff_line_ignore, NULL, NULL, 0, NULL },
+ { "ta", roff_unsupp, NULL, NULL, 0, NULL },
{ "tc", roff_unsupp, NULL, NULL, 0, NULL },
{ "TE", roff_TE, NULL, NULL, 0, NULL },
{ "TH", roff_TH, NULL, NULL, 0, NULL },
- { "ti", roff_line_ignore, NULL, NULL, 0, NULL },
+ { "ti", roff_unsupp, NULL, NULL, 0, NULL },
{ "tkf", roff_line_ignore, NULL, NULL, 0, NULL },
{ "tl", roff_unsupp, NULL, NULL, 0, NULL },
{ "tm", roff_line_ignore, NULL, NULL, 0, NULL },