summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-07-07 15:03:25 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-07-07 15:03:25 +0000
commite9c98b01dbf4aab839369afcc72089954c853f1f (patch)
treec14c7271b17908699ec0c82d6ac4398b7f72574f /usr.bin/mandoc/mdoc.c
parent32baf6d18fa97c115e0b0452562e44f90affde44 (diff)
no need to skip content before first section header
Diffstat (limited to 'usr.bin/mandoc/mdoc.c')
-rw-r--r--usr.bin/mandoc/mdoc.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.bin/mandoc/mdoc.c b/usr.bin/mandoc/mdoc.c
index d888f377236..adbc5238fcb 100644
--- a/usr.bin/mandoc/mdoc.c
+++ b/usr.bin/mandoc/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.108 2014/07/06 19:08:56 schwarze Exp $ */
+/* $Id: mdoc.c,v 1.109 2014/07/07 15:03:24 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -223,13 +223,6 @@ mdoc_addeqn(struct mdoc *mdoc, const struct eqn *ep)
assert( ! (MDOC_HALT & mdoc->flags));
- /* No text before an initial macro. */
-
- if (SEC_NONE == mdoc->lastnamed) {
- mdoc_pmsg(mdoc, ep->ln, ep->pos, MANDOCERR_NOTEXT);
- return(1);
- }
-
n = node_alloc(mdoc, ep->ln, ep->pos, MDOC_MAX, MDOC_EQN);
n->eqn = ep;
@@ -247,13 +240,6 @@ mdoc_addspan(struct mdoc *mdoc, const struct tbl_span *sp)
assert( ! (MDOC_HALT & mdoc->flags));
- /* No text before an initial macro. */
-
- if (SEC_NONE == mdoc->lastnamed) {
- mdoc_pmsg(mdoc, sp->line, 0, MANDOCERR_NOTEXT);
- return(1);
- }
-
n = node_alloc(mdoc, sp->line, 0, MDOC_MAX, MDOC_TBL);
n->span = sp;
@@ -718,13 +704,6 @@ mdoc_ptext(struct mdoc *mdoc, int line, char *buf, int offs)
char *c, *ws, *end;
struct mdoc_node *n;
- /* No text before an initial macro. */
-
- if (SEC_NONE == mdoc->lastnamed) {
- mdoc_pmsg(mdoc, line, offs, MANDOCERR_NOTEXT);
- return(1);
- }
-
assert(mdoc->last);
n = mdoc->last;