summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--action.c8
-rw-r--r--mdoc.c7
-rw-r--r--term.c7
3 files changed, 10 insertions, 12 deletions
diff --git a/action.c b/action.c
index c39d5db6..90a75c46 100644
--- a/action.c
+++ b/action.c
@@ -395,13 +395,9 @@ post_bl_width(struct mdoc *mdoc)
* the macro's width as set in share/tmac/mdoc/doc-common.
*/
- if (xstrcmp(*p, "Ds")) {
- if ( ! mdoc_warn(mdoc, WARN_COMPAT,
- "%s argument deprecated",
- mdoc_argnames[MDOC_Width]))
- return(0);
+ if (xstrcmp(*p, "Ds"))
width = 8;
- } else if (MDOC_MAX == (tok = mdoc_find(mdoc, *p)))
+ else if (MDOC_MAX == (tok = mdoc_find(mdoc, *p)))
return(1);
else if (0 == (width = mdoc_macro2len(tok)))
return(mdoc_warn(mdoc, WARN_SYNTAX,
diff --git a/mdoc.c b/mdoc.c
index 68466d11..dc89df7c 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -191,9 +191,14 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf)
mdoc->linetok = 0;
+ /*
+ * FIXME: should puke on whitespace in non-literal displays.
+ */
+
if ('.' != *buf) {
if (SEC_PROLOGUE == mdoc->lastnamed)
- return(mdoc_perr(mdoc, line, 0, "text disallowed in document prologue"));
+ return(mdoc_perr(mdoc, line, 0,
+ "no text in document prologue"));
if ( ! mdoc_word_alloc(mdoc, line, 0, buf))
return(0);
mdoc->next = MDOC_NEXT_SIBLING;
diff --git a/term.c b/term.c
index 34faeaca..54f1648e 100644
--- a/term.c
+++ b/term.c
@@ -1065,20 +1065,17 @@ termp_bd_pre(DECL_ARGS)
bl = &node->parent->data.block;
-
i = arg_getattr(MDOC_Offset, bl->argc, bl->argv);
if (-1 != i) {
assert(1 == bl->argv[i].sz);
p->offset += arg_offset(&bl->argv[i]);
}
- if ( ! arg_hasattr(MDOC_Literal, bl->argc, bl->argv))
- return(1);
-
p->flags |= TERMP_LITERAL;
for (n = node->child; n; n = n->next) {
- assert(MDOC_TEXT == n->type); /* FIXME */
+ if (MDOC_TEXT != n->type)
+ errx(1, "non-text displays unsupported");
if ((*n->data.text.string)) {
word(p, n->data.text.string);
flushln(p);