]> git.cameronkatri.com Git - mandoc.git/blob - regress/mdoc/Bl/column.in
enable -T markdown tests of filled displays and tagged lists
[mandoc.git] / regress / mdoc / Bl / column.in
1 .Dd October 14, 2015
2 .Dt BL-COLUMN 1
3 .Os OpenBSD
4 .Sh NAME
5 .Nm Bl-column
6 .Nd lists with multiple columns
7 .Sh DESCRIPTION
8 .Bl -column "a"
9 .It a
10 .El
11 .Bl -column "a" "b"
12 .It a Ta b
13 .El
14 .\" avoid "c" which means "cm"
15 .Bl -column "a" "b" "cc"
16 .It a Ta b Ta cc
17 .It a b cc
18 .It "a" b cc
19 .It "a b" cc
20 .It "a b cc"
21 .El
22 .Bl -column "a" "b" "cc" "d"
23 .It a Ta b Ta cc Ta d
24 .El
25 .Bl -column "a" "b" "cc" "d" "e"
26 .It a Ta b Ta cc Ta d Ta e
27 .El
28 .\" Probing up to the utter limits of groff.
29 .\" With more than 5 columns or more than 78 characters per line,
30 .\" groff .Bl -column turns completely mad.
31 .\" mandoc can do more, but it's no use testing that.
32 .Bd -literal
33 5 + 35 + 4 + 34 = 78:
34 .Ed
35 .Bl -column "x35xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "x34xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
36 .It x35xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Ta x34xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
37 .It a Ta b
38 .El
39 .Bd -literal
40 5 + (22+4)*2 + 21 = 78:
41 .Ed
42 .Bl -column "x22xxxxxxxxxxxxxxxxxxx" "x22xxxxxxxxxxxxxxxxxxx" "x21xxxxxxxxxxxxxxxxxx"
43 .It x22xxxxxxxxxxxxxxxxxxx Ta x22xxxxxxxxxxxxxxxxxxx Ta x21xxxxxxxxxxxxxxxxxx
44 .It a Ta b Ta c
45 .El
46 .Bd -literal
47 5 + 16 + (4+15)*3 = 78:
48 .Ed
49 .Bl -column "x16xxxxxxxxxxxxx" "x15xxxxxxxxxxxx" "x15xxxxxxxxxxxx" "x15xxxxxxxxxxxx"
50 .It x16xxxxxxxxxxxxx Ta x15xxxxxxxxxxxx Ta x15xxxxxxxxxxxx Ta x15xxxxxxxxxxxx
51 .It a Ta b Ta c Ta d
52 .El
53 .Bd -literal
54 5 + 13 + (3+12)*4 = 78:
55 .Ed
56 .Bl -column "x13xxxxxxxxxx" "x12xxxxxxxxx" "x12xxxxxxxxx" "x12xxxxxxxxx" "x12xxxxxxxxx"
57 .It x13xxxxxxxxxx Ta x12xxxxxxxxx Ta x12xxxxxxxxx Ta x12xxxxxxxxx Ta x12xxxxxxxxx
58 .It a Ta b Ta c Ta d Ta e
59 .El
60 .\" Trailing white space in phrases.
61 .Bl -column "aaaa" "bbbb"
62 .It "a" Ta "b"
63 .It "a " Ta "b"
64 .It "a " Ta "b"
65 .It a b
66 .It a b
67 .It a b
68 .El
69 .\" Wrong number of columns.
70 .Bl -column "a" "b"
71 .It "a"
72 .It "a" Ta "b"
73 .It "a" Ta "b" Ta "c"
74 .It "a" Ta "b" Ta "c" Ta "d"
75 .It "a" Ta "b" Ta "c" Ta "d" Ta "e"
76 .El
77 .\" Mixed tab and Ta
78 .Bl -column a b c d
79 .It a b c d
80 .It a b c Ta d
81 .It a b Ta c d
82 .It a b Ta c Ta d
83 .It a Ta b c d
84 .It a Ta b c Ta d
85 .It a Ta b Ta c d
86 .It a Ta b Ta c Ta d
87 .El
88 .\" Macros before and after tabs
89 .Bl -column "aa" "OpenBSD OpenBSD OpenBSD"
90 .It aa Ta Ox Ox Ox Ta tab-tab
91 .It aa Ta Ox Ox Ox tab-ta
92 .It aa Ox Ox Ox Ta ta-tab
93 .It aa Ox Ox Ox ta-ta
94 .It aa Ox Ox Ox ta-bl/ta
95 .It aa Ox Ox Ox ta/bl-ta
96 .It aa Ox Ox Ox ta/bl-bl/ta
97 .It aa Ta bb Ta
98 ta at eol
99 .It aa bb
100 tab at eol
101 .El
102 .\" Interrupted column list
103 .Bl -column "aa" -width 6n -compact "bb" "cc"
104 .It aa Ta bb Ta cc Ta dd
105 .El