aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-09-19 22:36:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-09-19 22:36:16 +0000
commiteee1390dda1a4f11d87431577c7c95163d5f60a5 (patch)
treebfd4c404a511c3347f250bce4bf8275bccd2b834 /term.h
parent80a2117d1c762a36f59899a3fa11da69900d340b (diff)
downloadmandoc-eee1390dda1a4f11d87431577c7c95163d5f60a5.tar.gz
mandoc-eee1390dda1a4f11d87431577c7c95163d5f60a5.tar.zst
mandoc-eee1390dda1a4f11d87431577c7c95163d5f60a5.zip
Remove the terminal frontend flag TERMP_NOLPAD.
In columnated contexts (.Bl -column, .Bl -tag, .IP, .TP, .HP etc.), do not pad after writing a column. Instead, always pad before writing content. In itself, this change avoids: - writing trailing whitespace in some situations - with .fi/.nf in .HP, breaking lines that were already padded It allows several bugfixes included in this patch: - Do not count backspace as a character with positive width. - Set up proper indentation when encountering .fi/.nf in .HP. - Adjust the .HP indentation width to what groff does. - Never unlimit the right margin unless in the final column. ok kristaps@
Diffstat (limited to 'term.h')
-rw-r--r--term.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/term.h b/term.h
index 348e1d53..685d0962 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.87 2011/09/18 14:14:15 schwarze Exp $ */
+/* $Id: term.h,v 1.88 2011/09/19 22:36:16 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -64,7 +64,6 @@ struct termp {
int flags;
#define TERMP_SENTENCE (1 << 1) /* Space before a sentence. */
#define TERMP_NOSPACE (1 << 2) /* No space before words. */
-#define TERMP_NOLPAD (1 << 3) /* See term_flushln(). */
#define TERMP_NOBREAK (1 << 4) /* See term_flushln(). */
#define TERMP_IGNDELIM (1 << 6) /* Delims like regulars. */
#define TERMP_NONOSPACE (1 << 7) /* No space (no autounset). */