aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-06-27 13:30:51 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-06-27 13:30:51 +0000
commit0d82fb509497f4929c0d0c2c4619f27aa7fc0052 (patch)
tree69123851fc7ab79410ec62c8f4174429f67d6935
parentadf4f1cf3dd98e5676c333b40212a2f4b0d1347d (diff)
downloadmandoc-0d82fb509497f4929c0d0c2c4619f27aa7fc0052.tar.gz
mandoc-0d82fb509497f4929c0d0c2c4619f27aa7fc0052.tar.zst
mandoc-0d82fb509497f4929c0d0c2c4619f27aa7fc0052.zip
Document .Bk and .Ek; reminded by kristaps@.
-rw-r--r--mdoc.725
1 files changed, 23 insertions, 2 deletions
diff --git a/mdoc.7 b/mdoc.7
index bc5f1ee3..deee615a 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.126 2010/06/12 11:41:50 kristaps Exp $
+.\" $Id: mdoc.7,v 1.127 2010/06/27 13:30:51 schwarze Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 12 2010 $
+.Dd $Mdocdate: June 27 2010 $
.Dt MDOC 7
.Os
.Sh NAME
@@ -1116,6 +1116,25 @@ and
.Sx \&Dl .
.Ss \&Bf
.Ss \&Bk
+Begins a keep block, containing a collection of macros or text
+to be kept together in the output.
+One argument is required; additional arguments are ignored.
+Currently, the only argument implemented is
+.Fl words ,
+requesting to keep together all words of the contained text
+on the same output line.
+A
+.Fl lines
+argument to keep together all lines of the contained text
+on the same page has been desired for a long time,
+but has never been implemented.
+.Pp
+Examples:
+.Bd -literal -offset indent
+\&.Bk \-words
+\&.Op o Ar output_file
+\&.Ek
+.Ed
.Ss \&Bl
Begins a list composed of one or more list entries.
A list is associated with a type, which is a required argument.
@@ -1589,6 +1608,8 @@ and
.Ss \&Ed
.Ss \&Ef
.Ss \&Ek
+Ends a keep context started by
+.Sx \&Bk .
.Ss \&El
Ends a list context started by
.Sx \&Bl .