diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-25 13:30:53 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-25 13:30:53 +0000 |
commit | 4d021113ebf58cd7c14d5296060c615c99450f9c (patch) | |
tree | c730feffc38ab970487d7f8010a8d044f189cdc0 /mdocterm.c | |
parent | 3591841468d0e60204416fa1ff53ed7c28ad88c4 (diff) | |
download | mandoc-4d021113ebf58cd7c14d5296060c615c99450f9c.tar.gz |
Support for nested lists added.
Diffstat (limited to 'mdocterm.c')
-rw-r--r-- | mdocterm.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) { |