summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-20 22:01:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-20 22:01:07 +0000
commit0805dbdbaa8481f2f101a4625f772844db8f116b (patch)
treee2302dc6c47e5f7edb1b555915b1245d943bd683
parent6907507e9490a89668a79a58931609f62c65bbb5 (diff)
downloadmandoc-0805dbdbaa8481f2f101a4625f772844db8f116b.tar.gz
Removed margin-break comment.
-rw-r--r--terminal.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/terminal.c b/terminal.c
index dff6609d..770fc80c 100644
--- a/terminal.c
+++ b/terminal.c
@@ -222,21 +222,12 @@ term_flushln(struct termp *p)
for (j = 0; j < (int)p->offset; j++)
putchar(' ');
vis = 0;
- } else if (vis + vsz > bp)
- warnx("word breaks right margin");
-
- /* TODO: hyphenate. */
-
- } else {
- if (vis && vis + vsz > bp) {
- putchar('\n');
- for (j = 0; j < (int)p->rmargin; j++)
- putchar(' ');
- vis = p->rmargin - p->offset;
- } else if (vis + vsz > bp)
- warnx("word breaks right margin");
-
- /* TODO: hyphenate. */
+ }
+ } else if (vis && vis + vsz > bp) {
+ putchar('\n');
+ for (j = 0; j < (int)p->rmargin; j++)
+ putchar(' ');
+ vis = p->rmargin - p->offset;
}
/*