| 1 |
================================================================================ |
| 2 |
Grid test |
| 3 |
================================================================================ |
| 4 |
|
| 5 |
Test 1 |
| 6 |
======= |
| 7 |
|
| 8 |
+------------------------+------------+----------+----------+ |
| 9 |
| Header row, column 1 | Header 2 | Header 3 | Header 4 | |
| 10 |
| (header rows optional) | | | | |
| 11 |
+========================+============+==========+==========+ |
| 12 |
| body row 1, column 1 | column 2 | column 3 | column 4 | |
| 13 |
+------------------------+------------+----------+----------+ |
| 14 |
| body row 2 | Cells may span columns. | |
| 15 |
+------------------------+------------+---------------------+ |
| 16 |
| body row 3 | Cells may | - Table cells | |
| 17 |
+------------------------+ span rows. + - contain + |
| 18 |
| body row 4 | aaa | - body elements. | |
| 19 |
+------------------------+------------+---------------------+ |
| 20 |
|
| 21 |
Test 2 |
| 22 |
======= |
| 23 |
|
| 24 |
+------------------------+------------+----------+----------+ |
| 25 |
| Header row, column 1 | Header 2 | Header 3 | Header 4 | |
| 26 |
| (header rows optional) | | | | |
| 27 |
+========================+============+==========+==========+ |
| 28 |
| body row 1, column 1 | column 2 | column 3 | column 4 | |
| 29 |
+ +------------+----------+----------+ |
| 30 |
| body row 2 | column 2 | column 3 | column 4 | |
| 31 |
+------------------------+ +----------+----------+ |
| 32 |
| body row 3 | may span | - Table cells | |
| 33 |
+------------------------+------------+ - contain + |
| 34 |
| body row 4 | column 2 | - body elements. | |
| 35 |
+------------------------+------------+---------------------+ |
| 36 |
|
| 37 |
|
| 38 |
Test 3 |
| 39 |
======= |
| 40 |
|
| 41 |
+------------------------+------------+----------+----------+ |
| 42 |
| Header row, column 1 | Header 2 | Header 3 | Header 4 | |
| 43 |
| (header rows optional) | | | | |
| 44 |
+========================+============+==========+==========+ |
| 45 |
| body row 1, column 1 | column 2 | column 3 | column 4 | |
| 46 |
+ +------------+----------+ + |
| 47 |
| body row 2 | column 2 | column 3 | may span | |
| 48 |
+------------------------+------------+ +----------+ |
| 49 |
| body row 3 | column 2 | may span | column 4 | |
| 50 |
+------------------------+ +----------+----------+ |
| 51 |
| body row 4 | may span | column 3 | column 4 | |
| 52 |
+------------------------+------------+----------+----------+ |
| 53 |
|
| 54 |
|
| 55 |
Test 4 |
| 56 |
======= |
| 57 |
|
| 58 |
+------------------------+------------+----------+----------+ |
| 59 |
| Header row, column 1 | Header 2 | Header 3 | Header 4 | |
| 60 |
| (header rows optional) | | | | |
| 61 |
+========================+============+==========+==========+ |
| 62 |
| body row 1, column 1 | column 2 | column 3 | column 4 | |
| 63 |
+ +------------+----------+ + |
| 64 |
| body row 2 | column 2 and column 3 | may span | |
| 65 |
+------------------------+ +----------+ |
| 66 |
| body row 3 | may span | column 4 | |
| 67 |
+ +------------+----------+----------+ |
| 68 |
| may span | may span | column 3 | column 4 | |
| 69 |
+------------------------+------------+----------+----------+ |
| 70 |
|
| 71 |
Test 4a |
| 72 |
======= |
| 73 |
|
| 74 |
+------------------------+------------+----------+----------+ |
| 75 |
| Header row, column 1 | Header 2 | Header 3 | Header 4 | |
| 76 |
| (header rows optional) | | | | |
| 77 |
+========================+============+==========+==========+ |
| 78 |
| body row 1, column 1 | column 2 | column 3 | column 4 | |
| 79 |
+ +------------+----------+ + |
| 80 |
| body row 2 | column 2 and column 3 | may span | |
| 81 |
+------------------------+ +----------+ |
| 82 |
| body row 3 | may span | column 4 | |
| 83 |
+ +------------+----------+----------+ |
| 84 |
| may span | may span | column 3 | column 4 | |
| 85 |
+------------------------+------------+----------+----------+ |
| 86 |
| body row 4 | column 2 | column 3 | column 4 | |
| 87 |
+------------------------+------------+----------+----------+ |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
Test 5 |
| 97 |
======= |
| 98 |
|
| 99 |
+------------------------+------------+----------+----------+ |
| 100 |
| Header row, column 1 | Header 2 | Header 3 | Header 4 | |
| 101 |
| (header rows optional) | | | | |
| 102 |
+========================+============+==========+==========+ |
| 103 |
| body row 1, column 1 | column 2 | column 3 | column 4 | |
| 104 |
+------------------------+------------+----------+----------+ |
| 105 |
| body row 2 | Cells may span columns. | |
| 106 |
+------------------------+------------+---------------------+ |
| 107 |
| body row 3 | Cells may | - Table cells | |
| 108 |
+------------------------+ span rows. | - contain | |
| 109 |
| body row 4 | | - body elements. | |
| 110 |
+------------------------+------------+---------------------+ |
| 111 |
|
| 112 |
|
| 113 |
Test 6 |
| 114 |
======= |
| 115 |
|
| 116 |
Some care must be taken with grid tables to avoid undesired |
| 117 |
interactions with cell text in rare cases. For example, the |
| 118 |
following table contains a cell in row 2 spanning from column 2 to |
| 119 |
column 4: |
| 120 |
|
| 121 |
+--------------+----------+-----------+-----------+ |
| 122 |
| row 1, col 1 | column 2 | column 3 | column 4 | |
| 123 |
+--------------+----------+-----------+-----------+ |
| 124 |
| row 2 | | |
| 125 |
+--------------+----------+-----------+-----------+ |
| 126 |
| row 3 | | | | |
| 127 |
+--------------+----------+-----------+-----------+ |
| 128 |
|
| 129 |
Test 7 |
| 130 |
======= |
| 131 |
|
| 132 |
If a vertical bar is used in the text of that cell, it could have |
| 133 |
unintended effects if accidentally aligned with column boundaries: |
| 134 |
|
| 135 |
+--------------+----------+-----------+-----------+ |
| 136 |
| row 1, col 1 | column 2 | column 3 | column 4 | |
| 137 |
+--------------+----------+-----------+-----------+ |
| 138 |
| row 2 | Use the command ``ls \| more``. | |
| 139 |
+--------------+----------+-----------+-----------+ |
| 140 |
| row 3 | | | | |
| 141 |
+--------------+----------+-----------+-----------+ |
| 142 |
|
| 143 |
Test 8 |
| 144 |
======= |
| 145 |
|
| 146 |
Several solutions are possible. All that is needed is to break the |
| 147 |
continuity of the cell outline rectangle. One possibility is to |
| 148 |
shift the text by adding an extra space before: |
| 149 |
|
| 150 |
|
| 151 |
+--------------+----------+-----------+-----------+ |
| 152 |
| row 1, col 1 | column 2 | column 3 | column 4 | |
| 153 |
+--------------+----------+-----------+-----------+ |
| 154 |
| row 2 | Use the command ``ls | more``. | |
| 155 |
+--------------+----------+-----------+-----------+ |
| 156 |
| row 3 | | | | |
| 157 |
+--------------+----------+-----------+-----------+ |
| 158 |
|
| 159 |
Test 9 |
| 160 |
======= |
| 161 |
|
| 162 |
Another possibility is to add an extra line to row 2: |
| 163 |
|
| 164 |
+--------------+----------+-----------+-----------+ |
| 165 |
| row 1, col 1 | column 2 | column 3 | column 4 | |
| 166 |
+--------------+----------+-----------+-----------+ |
| 167 |
| row 2 | Use the command ``ls | more``. | |
| 168 |
| | | |
| 169 |
+--------------+----------+-----------+-----------+ |
| 170 |
| row 3 | | | | |
| 171 |
+--------------+----------+-----------+-----------+ |