From 47a3a2b11dd9c321362d7104337e82cb7170da95 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 1 Mar 2009 23:14:15 +0000 Subject: Backed-out warning about Ds. Backed-out assertion about Bd subtypes. --- mdoc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mdoc.c') 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; -- cgit