From 4d021113ebf58cd7c14d5296060c615c99450f9c Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 25 Feb 2009 13:30:53 +0000 Subject: Support for nested lists added. --- mdocterm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mdocterm.c') 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 * @@ -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) { -- cgit