From: "Anthony J. Bentley" <anthony@cathet.us>
To: discuss@mdocml.bsd.lv
Subject: tbl(7) text blocks
Date: Fri, 28 Mar 2014 01:21:04 -0600 [thread overview]
Message-ID: <20314.1395991264@cathet.us> (raw)
Hi,
Groff's tbl(1) manual has a section named "Text blocks." Quoting from it:
A text block can be used to enter data as a single entry which would be
too long as a simple string between tabs. It is started with `T{' and
closed with `T}'. The former must end a line, and the latter must
start a line, probably followed by other data columns (separated with
tabs or the character given with the tab global option).
This feature is used by reStructuredText. For example, the following
selection from mpv(1)'s documentation:
============= ================================================
left-click play previous file in playlist
shift+L-click show playlist
============= ================================================
generates the following tbl(7) source:
.TS
center;
|l|l|.
_
T{
left\-click
T} T{
play previous file in playlist
T}
_
T{
shift+L\-click
T} T{
show playlist
T}
_
.TE
Groff converts that to the following:
+--------------+-----------------------+
|left-click | play previous file in |
| | playlist |
+--------------+-----------------------+
|shift+L-click | show playlist |
+--------------+-----------------------+
Mandoc outputs nothing. -Tlint reveals:
/tmp/mpv.1:9:3: ERROR: bad table layout
/tmp/mpv.1:11:1: ERROR: bad table layout
/tmp/mpv.1:12:4: ERROR: bad table layout
/tmp/mpv.1:13:1: ERROR: bad table layout
/tmp/mpv.1:14:1: ERROR: bad table layout
/tmp/mpv.1:15:1: ERROR: bad table layout
/tmp/mpv.1:17:1: ERROR: bad table layout
/tmp/mpv.1:18:1: ERROR: bad table layout
/tmp/mpv.1:19:1: ERROR: bad table layout
/tmp/mpv.1:20:1: ERROR: bad table layout
/tmp/mpv.1:21:1: ERROR: bad table layout
/tmp/mpv.1:7:1: ERROR: no table data cells specified
--
Anthony J. Bentley
--
To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv
next reply other threads:[~2014-03-28 7:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 7:21 Anthony J. Bentley [this message]
2014-03-28 21:30 ` Ingo Schwarze
2014-03-28 23:37 ` Ingo Schwarze
2014-03-29 0:02 ` Anthony J. Bentley
2014-03-28 21:50 ` Guy Harris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20314.1395991264@cathet.us \
--to=anthony@cathet.us \
--cc=discuss@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).