aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-26 09:35:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-26 09:35:35 +0000
commitf8ede7a108bd19b4ecd301b946e6b634d7e98d5b (patch)
tree6956a5e5fe0bd940ab5bc42060544f694485342d /mdoc.7
parent37f8917aeef19cb63f549c0618b20c10b72b103b (diff)
downloadmandoc-f8ede7a108bd19b4ecd301b946e6b634d7e98d5b.tar.gz
mandoc-f8ede7a108bd19b4ecd301b946e6b634d7e98d5b.tar.zst
mandoc-f8ede7a108bd19b4ecd301b946e6b634d7e98d5b.zip
Fixed `Lb' to be in_line (reported by Ulrich Spoerlein).
Added `Lb' documentation to mdoc.7. Removed harmless but superfluous pre_lb check (was just NULL entries). Added regressions for `Lb' (NOTE that these will only run on new groff, as old groff doesn't support `Lb' at all).
Diffstat (limited to 'mdoc.7')
-rw-r--r--mdoc.730
1 files changed, 27 insertions, 3 deletions
diff --git a/mdoc.7 b/mdoc.7
index f7bda9e3..8444cce1 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.108 2010/05/15 16:24:37 kristaps Exp $
+.\" $Id: mdoc.7,v 1.109 2010/05/26 09:35:35 kristaps 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: May 15 2010 $
+.Dd $Mdocdate: May 26 2010 $
.Dt MDOC 7
.Os
.Sh NAME
@@ -731,7 +731,9 @@ Note that the
macro is a
.Sx Block partial-implicit
only when invoked as the first macro
-in a SYNOPSIS section line, else it is
+in a
+.Em SYNOPSIS
+section line, else it is
.Sx In-line .
.Ss In-line
Closed by
@@ -1644,6 +1646,28 @@ and
.Ss \&In
.Ss \&It
.Ss \&Lb
+Specify a library.
+The calling syntax is as follows:
+.Pp
+.D1 \. Ns Sx \&Lb Cm library
+.Pp
+The
+.Cm library
+parameter may be a system library, such as
+.Cm libz
+or
+.Cm libpam ,
+in which case a small library description is printed next to the linker
+invocation; or a custom library, in which case the library name is
+printed in quotes.
+This is most commonly used in the
+.Em SYNOPSIS
+section as described in
+.Sx MANUAL STRUCTURE .
+.Pp
+Examples:
+.D1 \&.Lb libz
+.D1 \&.Lb mdoc
.Ss \&Li
.Ss \&Lk
Format a hyperlink.