summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-15 15:53:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-15 15:53:57 +0000
commit469dda9abe8e2d5ff08ae7d632dad0b4a59a2d49 (patch)
tree426f65e1a1df3f16c8c30383fcb993215153289d
parent5124c2e62f7d10cb20110b131988c9bb390740b2 (diff)
downloadmandoc-469dda9abe8e2d5ff08ae7d632dad0b4a59a2d49.tar.gz
Removed assertion (disregarded blank literal lines).
-rw-r--r--mdoc_action.c15
-rw-r--r--term.c1
2 files changed, 15 insertions, 1 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index b3e471fc..5b4a9564 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -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);
diff --git a/term.c b/term.c
index 53ef0ce7..ffb18246 100644
--- a/term.c
+++ b/term.c
@@ -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;