summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-01 23:14:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-01 23:14:15 +0000
commit47a3a2b11dd9c321362d7104337e82cb7170da95 (patch)
tree08c9a887e527e2c2364b456394426abad49c5596 /mdoc.c
parentfb06a8ce3dc0cd9e25b55638172648266b5c9dcd (diff)
downloadmandoc-47a3a2b11dd9c321362d7104337e82cb7170da95.tar.gz
Backed-out warning about Ds.
Backed-out assertion about Bd subtypes.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c7
1 files changed, 6 insertions, 1 deletions
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;