X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/87afbc0e736c0c51230aed2a74f1f10684872d7e..67a3b6c851566d68fb74eccb2b33cb3de56b314d:/mdoc.c diff --git a/mdoc.c b/mdoc.c index 23f0d7bb..af8a7fcc 100644 --- a/mdoc.c +++ b/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.48 2009/02/23 12:45:19 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.49 2009/03/01 23:14:15 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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;