aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-07-15 20:40:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-07-15 20:40:32 +0000
commit68e1764aa148f24b0e240566aa9f334c2eb55ca6 (patch)
tree422c5329286368dfe2eb8b9d6a43cbfccc09c013 /mdoc.7
parentf66121c65869e1cdbe39523f0b8fc7932ce1dc64 (diff)
downloadmandoc-68e1764aa148f24b0e240566aa9f334c2eb55ca6.tar.gz
mandoc-68e1764aa148f24b0e240566aa9f334c2eb55ca6.tar.zst
mandoc-68e1764aa148f24b0e240566aa9f334c2eb55ca6.zip
improve documentation of .Bl -column .It Ta
using feedback from kristaps@, ok jmc@
Diffstat (limited to 'mdoc.7')
-rw-r--r--mdoc.768
1 files changed, 43 insertions, 25 deletions
diff --git a/mdoc.7 b/mdoc.7
index b353f66f..8013459b 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.189 2011/07/11 08:45:02 kristaps Exp $
+.\" $Id: mdoc.7,v 1.190 2011/07/15 20:40:32 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,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: July 11 2011 $
+.Dd $Mdocdate: July 15 2011 $
.Dt MDOC 7
.Os
.Sh NAME
@@ -760,6 +760,21 @@ in a
.Em SYNOPSIS
section line, else it is
.Sx In-line .
+.Ss Special block macro
+The
+.Sx \&Ta
+macro can only be used below
+.Sx \&It
+in
+.Sx \&Bl Fl column
+lists.
+It delimits blocks representing table cells;
+these blocks have bodies, but no heads.
+.Pp
+.Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXX" -compact -offset indent
+.It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
+.It Sx \&Ta Ta Yes Ta Yes Ta closed by Sx \&Ta , Sx \&It
+.El
.Ss In-line
Closed by
.Sx Reserved Terms ,
@@ -1942,6 +1957,8 @@ See also
.Sx \&Fc ,
and
.Sx \&Ft .
+.Ss \&Fr
+This macro is obsolete and not implemented.
.Ss \&Ft
A function type.
Its syntax is as follows:
@@ -2064,31 +2081,27 @@ The
list is the most complicated.
Its syntax is as follows:
.Pp
-.D1 Pf \. Sx \&It Op Cm args
+.D1 Pf \. Sx \&It Ar cell Op <TAB> Ar cell ...
+.D1 Pf \. Sx \&It Ar cell Op Sx \&Ta Ar cell ...
.Pp
-The
-.Cm args
-are phrases, a mix of macros and text corresponding to a line column,
-delimited by tabs or the special
-.Sq \&Ta
-pseudo-macro.
-Lines subsequent the
+The arguments consist of one or more lines of text and macros
+representing a complete table line.
+Cells within the line are delimited by tabs or by the special
+.Sx \&Ta
+block macro.
+The tab cell delimiter may only be used within the
.Sx \&It
-are interpreted within the scope of the last phrase.
-Calling the pseudo-macro
-.Sq \&Ta
-will open a new phrase scope (this must occur on a macro line to be
-interpreted as a macro).
-Note that the tab phrase delimiter may only be used within the
+line itself; on following lines, only the
+.Sx \&Ta
+macro can be used to delimit cells, and
+.Sx \&Ta
+is only recognized as a macro when called by other macros,
+not as the first macro on a line.
+.Pp
+Note that quoted strings may span tab-delimited cells on an
.Sx \&It
-line itself.
-Subsequent this, only the
-.Sq \&Ta
-pseudo-macro may be used to delimit phrases.
-Furthermore, note that quoted sections propagate over tab-delimited
-phrases on an
-.Sx \&It ,
-for example,
+line.
+For example,
.Pp
.Dl .It \(dqcol1 ; <TAB> col2 ;\(dq \&;
.Pp
@@ -2643,6 +2656,11 @@ See also
.Sx \&Li ,
and
.Sx \&Em .
+.Ss \&Ta
+Table cell separator in
+.Sx \&Bl Fl column
+lists; can only be used below
+.Sx \&It .
.Ss \&Tn
Format a tradename.
.Pp
@@ -2792,7 +2810,7 @@ Newer groff and mandoc print
.Qq AT&T UNIX
and the arguments.
.It
-.Sx \&Bd Fl column
+.Sx \&Bl Fl column
does not recognize trailing punctuation characters when they immediately
precede tabulator characters, but treats them as normal text and
outputs a space before them.