summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-07 15:03:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-07 15:03:43 +0000
commit9c359af9bb1bd8e1d69f8127bdd52825bd3b8014 (patch)
tree3d3b9aa7139c4a1108f3039cf9e3a4be4794ce08 /mdoc.c
parent04736aac15e84c2dacbbb0788d3e89d2daf75cd4 (diff)
downloadmandoc-9c359af9bb1bd8e1d69f8127bdd52825bd3b8014.tar.gz
no need to skip content before first section header
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/mdoc.c b/mdoc.c
index 74e19a2e..ead01c15 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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;