diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-25 23:18:50 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-25 23:18:50 +0000 |
commit | 854c97785aa7622023610b070d91abae644ed473 (patch) | |
tree | 5f7e621e51e6bc0b9644feb1cf07dd964f715fe5 /mdocterm.c | |
parent | fbb8e6b42e8895e80dccf310a84f381246f9ac58 (diff) | |
download | mandoc-854c97785aa7622023610b070d91abae644ed473.tar.gz |
More list work.
Diffstat (limited to 'mdocterm.c')
-rw-r--r-- | mdocterm.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -91,7 +91,7 @@ main(int argc, char *argv[]) if (NULL == (termp.buf = malloc(termp.maxcols))) err(1, "malloc"); - header(&termp, mdoc_meta(mdoc)); + /*header(&termp, mdoc_meta(mdoc));*/ body(&termp, NULL, mdoc_meta(mdoc), mdoc_node(mdoc)); footer(&termp, mdoc_meta(mdoc)); @@ -168,7 +168,7 @@ flushln(struct termp *p) * the line with TERMP_NOBREAK). */ - if (vis && vis + vsz >= maxvis) { + if (vis && vis + vsz > maxvis) { /* FIXME */ if (p->flags & TERMP_NOBREAK) errx(1, "word breaks right margin"); @@ -176,7 +176,7 @@ flushln(struct termp *p) for (j = 0; j < p->offset; j++) putchar(' '); vis = 0; - } else if (vis + vsz >= maxvis) + } else if (vis + vsz > maxvis) /* FIXME */ errx(1, "word breaks right margin"); @@ -203,8 +203,9 @@ flushln(struct termp *p) */ if (p->flags & TERMP_NOBREAK) { - for ( ; vis < maxvis; vis++) - putchar(' '); + if ( ! (p->flags & TERMP_NORPAD)) + for ( ; vis < maxvis; vis++) + putchar(' '); } else putchar('\n'); |