summaryrefslogtreecommitdiffstats
path: root/mdocterm.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-25 13:30:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-25 13:30:53 +0000
commit4d021113ebf58cd7c14d5296060c615c99450f9c (patch)
treec730feffc38ab970487d7f8010a8d044f189cdc0 /mdocterm.c
parent3591841468d0e60204416fa1ff53ed7c28ad88c4 (diff)
downloadmandoc-4d021113ebf58cd7c14d5296060c615c99450f9c.tar.gz
Support for nested lists added.
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mdocterm.c b/mdocterm.c
index 2f14ef44..f1026ba8 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -1,4 +1,4 @@
- /* $Id$ */
+/* $Id$ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -200,7 +200,7 @@ flushln(struct termp *p)
*/
if (p->flags & TERMP_NOBREAK) {
- for ( ; vis <= maxvis; vis++)
+ for ( ; vis < maxvis; vis++)
putchar(' ');
} else
putchar('\n');
@@ -221,6 +221,7 @@ newln(struct termp *p)
if (0 == p->col)
return;
flushln(p);
+ p->flags &= ~TERMP_NOLPAD;
}
@@ -416,7 +417,7 @@ body(struct termp *p, const struct mdoc_meta *meta,
dochild = 1;
pair.type = 0;
- pair.offset = 0;
+ pair.offset = pair.rmargin = 0;
pair.flag = 0;
if (MDOC_TEXT != node->type) {