aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-25 00:39:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-25 00:39:31 +0000
commit50aba90c460f529396e34797ccd6363e0f246c9c (patch)
tree349f08a9fffc24cd8092cc06d4f4804b22ff50a1 /term.h
parent319dd615ecf9bfbb4f80d4a40c14cfa67f905b04 (diff)
downloadmandoc-50aba90c460f529396e34797ccd6363e0f246c9c.tar.gz
mandoc-50aba90c460f529396e34797ccd6363e0f246c9c.tar.zst
mandoc-50aba90c460f529396e34797ccd6363e0f246c9c.zip
Do not break output lines in .Fn function arguments in SYNOPSIS mode.
Following an idea from Franco Fichtner, but implemented more cleanly. This reduces groff-mandoc-differences in OpenBSD base by a fantastic 7.5%.
Diffstat (limited to 'term.h')
-rw-r--r--term.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/term.h b/term.h
index bded6226..8cad4be8 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.96 2013/12/24 23:04:36 schwarze Exp $ */
+/* $Id: term.h,v 1.97 2013/12/25 00:39:31 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -71,6 +71,7 @@ struct termp {
#define TERMP_SENTENCE (1 << 1) /* Space before a sentence. */
#define TERMP_NOSPACE (1 << 2) /* No space before words. */
#define TERMP_NONOSPACE (1 << 3) /* No space (no autounset). */
+#define TERMP_NBRWORD (1 << 4) /* Make next word nonbreaking. */
#define TERMP_KEEP (1 << 5) /* Keep words together. */
#define TERMP_PREKEEP (1 << 6) /* ...starting with the next one. */
#define TERMP_SKIPCHAR (1 << 7) /* Skip the next character. */