summaryrefslogtreecommitdiffstatshomepage
path: root/mdocterm.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-03 22:17:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-03 22:17:19 +0000
commitbf7b0c823358aaab5d2f765ac694a66f09d72eef (patch)
tree01051a7343df805b390561d6826fe70c048fa9e2 /mdocterm.c
parent86e8f7e0bfb4f77c6c3037eba104791ae7b1d71e (diff)
downloadmandoc-bf7b0c823358aaab5d2f765ac694a66f09d72eef.tar.gz
mandoc-bf7b0c823358aaab5d2f765ac694a66f09d72eef.tar.zst
mandoc-bf7b0c823358aaab5d2f765ac694a66f09d72eef.zip
-inset and -diag lists now supported.
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mdocterm.c b/mdocterm.c
index 00a13085..9149a6d9 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -1,4 +1,4 @@
-/* $Id: mdocterm.c,v 1.27 2009/03/03 21:07:01 kristaps Exp $ */
+/* $Id: mdocterm.c,v 1.28 2009/03/03 22:17:19 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -227,9 +227,6 @@ main(int argc, char *argv[])
* offset value. This is useful when doing columnar lists where the
* prior column has right-padded.
*
- * - TERMP_LITERAL: don't break apart words. Note that a long literal
- * word will violate the right margin.
- *
* - TERMP_NOBREAK: this is the most important and is used when making
* columns. In short: don't print a newline and instead pad to the
* right margin. Used in conjunction with TERMP_NOLPAD.
@@ -363,10 +360,10 @@ flushln(struct termp *p)
* pad to the right margin and stay off.
*/
- if (p->flags & TERMP_NOBREAK) {
+ if (p->flags & TERMP_NOBREAK)
for ( ; vis < maxvis; vis++)
putchar(' ');
- } else
+ else
putchar('\n');
p->col = 0;