diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 15:03:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 15:03:43 +0000 |
commit | 9c359af9bb1bd8e1d69f8127bdd52825bd3b8014 (patch) | |
tree | 3d3b9aa7139c4a1108f3039cf9e3a4be4794ce08 /mdoc.c | |
parent | 04736aac15e84c2dacbbb0788d3e89d2daf75cd4 (diff) | |
download | mandoc-9c359af9bb1bd8e1d69f8127bdd52825bd3b8014.tar.gz |
no need to skip content before first section header
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -227,13 +227,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; @@ -251,13 +244,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; @@ -722,13 +708,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; |