discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* tbl(7) text blocks
@ 2014-03-28  7:21 Anthony J. Bentley
  2014-03-28 21:30 ` Ingo Schwarze
  2014-03-28 21:50 ` Guy Harris
  0 siblings, 2 replies; 5+ messages in thread
From: Anthony J. Bentley @ 2014-03-28  7:21 UTC (permalink / raw)
  To: discuss

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-29  0:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-28  7:21 tbl(7) text blocks Anthony J. Bentley
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

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).