X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/f52cdc4437cb37e93dbd03a14742e01eb654df7e..77cb4c746cb1f605faa4b563da216a44b380a6ab:/term.c diff --git a/term.c b/term.c index f9d60a8d..2f10c0a5 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.31 2009/03/01 13:06:49 kristaps Exp $ */ +/* $Id: term.c,v 1.33 2009/03/01 23:27:14 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -1065,20 +1065,17 @@ termp_bd_pre(DECL_ARGS) bl = &node->parent->data.block; - i = arg_getattr(MDOC_Offset, bl->argc, bl->argv); if (-1 != i) { assert(1 == bl->argv[i].sz); p->offset += arg_offset(&bl->argv[i]); } - if ( ! arg_hasattr(MDOC_Literal, bl->argc, bl->argv)) - return(1); - p->flags |= TERMP_LITERAL; for (n = node->child; n; n = n->next) { - assert(MDOC_TEXT == n->type); /* FIXME */ + if (MDOC_TEXT != n->type) + errx(1, "non-text displays unsupported"); if ((*n->data.text.string)) { word(p, n->data.text.string); flushln(p); @@ -1295,6 +1292,7 @@ termp_cd_pre(DECL_ARGS) { TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_CONFIG]); + newln(p); return(1); }