diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-12-25 00:39:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-12-25 00:39:31 +0000 |
commit | 50aba90c460f529396e34797ccd6363e0f246c9c (patch) | |
tree | 349f08a9fffc24cd8092cc06d4f4804b22ff50a1 /term.h | |
parent | 319dd615ecf9bfbb4f80d4a40c14cfa67f905b04 (diff) | |
download | mandoc-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. */ |