=================================================================== RCS file: /cvs/mandoc/Attic/mdocterm.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -p -r1.10 -r1.11 --- mandoc/Attic/mdocterm.c 2009/02/25 12:27:37 1.10 +++ mandoc/Attic/mdocterm.c 2009/02/25 13:30:53 1.11 @@ -1,4 +1,4 @@ - /* $Id: mdocterm.c,v 1.10 2009/02/25 12:27:37 kristaps Exp $ */ +/* $Id: mdocterm.c,v 1.11 2009/02/25 13:30:53 kristaps Exp $ */ /* * 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) {