diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-04 13:57:35 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-04 13:57:35 +0000 |
commit | 7827eedf059a1551d71666af5d70b51a7ab536bc (patch) | |
tree | 7a54e90f16ed2bcb5ab2ecb80a4e605455ae714f /mdocterm.c | |
parent | 978c841bef6356b836aa769aee366d3c5a6f64c6 (diff) | |
download | mandoc-7827eedf059a1551d71666af5d70b51a7ab536bc.tar.gz |
Considerably cleaned up list handling.
Diffstat (limited to 'mdocterm.c')
-rw-r--r-- | mdocterm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -189,8 +189,7 @@ main(int argc, char *argv[]) if (NULL == (mdoc = mmain_mdoc(p))) mmain_exit(p, 1); - termp.maxrmargin = 78; /* XXX */ - termp.rmargin = termp.maxrmargin; + termp.maxrmargin = termp.rmargin = 78; /* XXX */ termp.maxcols = 1024; termp.offset = termp.col = 0; termp.flags = TERMP_NOSPACE; @@ -317,7 +316,7 @@ flushln(struct termp *p) putchar('\n'); for (j = 0; j < p->rmargin; j++) putchar(' '); - vis = p->rmargin; + vis = p->offset; } else if (vis + vsz > bp) warnx("word breaks right margin"); |