diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-15 15:53:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-15 15:53:57 +0000 |
commit | a03ada82544c8419c243f11f16b3aefd27e3e577 (patch) | |
tree | 6ee43ba9cb303c447ffb43c77c36675b36a148eb | |
parent | 005b7d95d877cf91ace6c09d14530e956ed06308 (diff) | |
download | mandoc-a03ada82544c8419c243f11f16b3aefd27e3e577.tar.gz mandoc-a03ada82544c8419c243f11f16b3aefd27e3e577.tar.zst mandoc-a03ada82544c8419c243f11f16b3aefd27e3e577.zip |
Removed assertion (disregarded blank literal lines).
-rw-r--r-- | mdoc_action.c | 17 | ||||
-rw-r--r-- | term.c | 3 |
2 files changed, 17 insertions, 3 deletions
diff --git a/mdoc_action.c b/mdoc_action.c index dcb938e5..8bc981fe 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.27 2009/07/12 20:50:08 kristaps Exp $ */ +/* $Id: mdoc_action.c,v 1.28 2009/07/15 15:53:57 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -298,6 +298,11 @@ post_lb(POST_ARGS) char *buf; size_t sz; + /* + * FIXME: this must be broken apart into a series of TEXT nodes, + * each containing a single word. + */ + assert(MDOC_TEXT == m->last->child->type); p = mdoc_a2lib(m->last->child->string); if (NULL == p) { @@ -326,6 +331,11 @@ post_st(POST_ARGS) { const char *p; + /* + * FIXME: this must be broken apart into a series of TEXT nodes, + * each containing a single word. + */ + assert(MDOC_TEXT == m->last->child->type); p = mdoc_a2st(m->last->child->string); assert(p); @@ -343,6 +353,11 @@ post_at(POST_ARGS) struct mdoc_node *n; const char *p; + /* + * FIXME: this must be broken apart into a series of TEXT nodes, + * each containing a single word. + */ + if (m->last->child) { assert(MDOC_TEXT == m->last->child->type); p = mdoc_a2att(m->last->child->string); @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.86 2009/07/15 15:37:48 kristaps Exp $ */ +/* $Id: term.c,v 1.87 2009/07/15 15:53:57 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -496,7 +496,6 @@ void term_word(struct termp *p, const char *word) { - assert(*word); if (term_isclosedelim(word)) if ( ! (TERMP_IGNDELIM & p->flags)) p->flags |= TERMP_NOSPACE; |