PageRenderTime 23ms CodeModel.GetById 2ms app.highlight 15ms RepoModel.GetById 1ms app.codeStats 0ms

/test/target/ok/table.rst

http://txt2tags.googlecode.com/
ReStructuredText | 280 lines | 220 code | 60 blank | 0 comment | 0 complexity | 3a52775f73552e8fdb31e390fd777744 MD5 | raw file
  1
  2************
  3Simple table
  4************
  5
  6   ========== ========== ========== 
  7    Cell 1-1   Cell 1-2   Cell 1-3  
  8    Cell 2-1   Cell 2-2   Cell 2-3  
  9    Cell 3-1   Cell 3-2   Cell 3-3  
 10   ========== ========== ========== 
 11
 12
 13*********************
 14Simple table + border
 15*********************
 16
 17  +----------+----------+----------+
 18  | Cell 1-1 | Cell 1-2 | Cell 1-3 |
 19  +----------+----------+----------+
 20  | Cell 2-1 | Cell 2-2 | Cell 2-3 |
 21  +----------+----------+----------+
 22  | Cell 3-1 | Cell 3-2 | Cell 3-3 |
 23  +----------+----------+----------+
 24
 25
 26**********************
 27Simple table + heading
 28**********************
 29
 30   ========== ========== ========== 
 31    Head 1-1   Head 1-2   Head 1-3  
 32   ========== ========== ========== 
 33    Cell 1-1   Cell 1-2   Cell 1-3  
 34    Cell 2-1   Cell 2-2   Cell 2-3  
 35    Cell 3-1   Cell 3-2   Cell 3-3  
 36   ========== ========== ========== 
 37
 38
 39*******************************
 40Simple table + heading + border
 41*******************************
 42
 43  +----------+----------+----------+
 44  | Head 1-1 | Head 1-2 | Head 1-3 |
 45  +==========+==========+==========+
 46  | Cell 1-1 | Cell 1-2 | Cell 1-3 |
 47  +----------+----------+----------+
 48  | Cell 2-1 | Cell 2-2 | Cell 2-3 |
 49  +----------+----------+----------+
 50  | Cell 3-1 | Cell 3-2 | Cell 3-3 |
 51  +----------+----------+----------+
 52
 53
 54****************************************
 55Simple table + heading + border + footer
 56****************************************
 57
 58  +----------+----------+----------+
 59  | Head 1-1 | Head 1-2 | Head 1-3 |
 60  +==========+==========+==========+
 61  | Cell 1-1 | Cell 1-2 | Cell 1-3 |
 62  +----------+----------+----------+
 63  | Cell 2-1 | Cell 2-2 | Cell 2-3 |
 64  +----------+----------+----------+
 65  | Cell 3-1 | Cell 3-2 | Cell 3-3 |
 66  +----------+----------+----------+
 67  | Foot 1-1 | Foot 1-2 | Foot 1-3 |
 68  +----------+----------+----------+
 69
 70
 71*********************************************
 72Simple table + heading + border + centralized
 73*********************************************
 74
 75  +----------+----------+----------+
 76  | Head 1-1 | Head 1-2 | Head 1-3 |
 77  +==========+==========+==========+
 78  | Cell 1-1 | Cell 1-2 | Cell 1-3 |
 79  +----------+----------+----------+
 80  | Cell 2-1 | Cell 2-2 | Cell 2-3 |
 81  +----------+----------+----------+
 82  | Cell 3-1 | Cell 3-2 | Cell 3-3 |
 83  +----------+----------+----------+
 84
 85
 86**************
 87Cell alignment
 88**************
 89
 90  +---------+---------+
 91  | ======= | ======= |
 92  +---------+---------+
 93  | <       |       > |
 94  +---------+---------+
 95  |    =    |    =    |
 96  +---------+---------+
 97  |       > | <       |
 98  +---------+---------+
 99
100
101*****************
102Heading alignment
103*****************
104
105  +---------+---------+
106  | ======= | ======= |
107  +=========+=========+
108  | <       |       > |
109  +---------+---------+
110  |    =    |    =    |
111  +---------+---------+
112  |       > | <       |
113  +---------+---------+
114
115
116*********************
117Column span for cells
118*********************
119
120  +---+---+---+---+
121  | 1 | 2 | 3 | 4 |
122  +---+---+---+---+
123  | 1 | 2 | 3 + 4 |
124  +---+---+---+---+
125  | 1 + 2 + 3 | 4 |
126  +---+---+---+---+
127  | 1 | 2 + 3 | 4 |
128  +---+---+---+---+
129  | 1 + 2 + 3 + 4 |
130  +---+---+---+---+
131
132
133************************
134Column span for headings
135************************
136
137  +---+---+---+---+
138  | 1 | 2 | 3 | 4 |
139  +===+===+===+===+
140  | 1 | 2 | 3 + 4 |
141  +---+---+---+---+
142  | 1 + 2 + 3 | 4 |
143  +---+---+---+---+
144  | 1 | 2 + 3 | 4 |
145  +---+---+---+---+
146  | 1 + 2 + 3 + 4 |
147  +---+---+---+---+
148
149
150****************************
151Cell alignment + column span
152****************************
153
154  +---------+---------+---------+
155  | ======= | ======= | ======= |
156  +---------+---------+---------+
157  | <                 |    =    |
158  +---------+---------+---------+
159  |              =              |
160  +---------+---------+---------+
161  |    =    |                >  |
162  +---------+---------+---------+
163
164
165*******************************
166Heading alignment + column span
167*******************************
168
169  +---------+---------+---------+
170  | ======= | ======= | ======= |
171  +=========+=========+=========+
172  | <                 |    =    |
173  +---------+---------+---------+
174  |              =              |
175  +---------+---------+---------+
176  |    =    |                >  |
177  +---------+---------+---------+
178
179
180****************
181Some empty cells
182****************
183
184  +---+---+---+---+---+
185  | A | B | C | D |   |
186  +---+---+---+---+---+
187  | F | G | H |   | J |
188  +---+---+---+---+---+
189  | K | L |   | N | O |
190  +---+---+---+---+---+
191  | P |   | R | S | T |
192  +---+---+---+---+---+
193  |   | V | W | X | Y |
194  +---+---+---+---+---+
195
196
197**********************************************
198Lines with different number of cells, increase
199**********************************************
200
201  +---+---+---+---+---+
202  | 1 |   |   |   |   |
203  +---+---+---+---+---+
204  | 1 | 2 |   |   |   |
205  +---+---+---+---+---+
206  | 1 | 2 | 3 |   |   |
207  +---+---+---+---+---+
208  | 1 | 2 | 3 | 4 |   |
209  +---+---+---+---+---+
210  | 1 | 2 | 3 | 4 | 5 |
211  +---+---+---+---+---+
212
213
214**********************************************
215Lines with different number of cells, decrease
216**********************************************
217
218  +---+---+---+---+---+
219  | 1 | 2 | 3 | 4 | 5 |
220  +---+---+---+---+---+
221  | 1 | 2 | 3 | 4 |   |
222  +---+---+---+---+---+
223  | 1 | 2 | 3 |   |   |
224  +---+---+---+---+---+
225  | 1 | 2 |   |   |   |
226  +---+---+---+---+---+
227  | 1 |   |   |   |   |
228  +---+---+---+---+---+
229
230
231**************
232One cell table
233**************
234
235   ======== 
236    Cell 1  
237   ======== 
238
239
240***********************
241One cell table + border
242***********************
243
244  +--------+
245  | Cell 1 |
246  +--------+
247
248
249************************
250One cell table + heading
251************************
252
253   ======== 
254    Head 1  
255   ======== 
256
257
258*********************************
259One cell table + heading + border
260*********************************
261
262  +--------+
263  | Head 1 |
264  +--------+
265
266
267***********
268Empty lines
269***********
270
271  +---+
272  |   |
273  +---+
274  |   |
275  +---+
276  |   |
277  +---+
278
279.. rst code generated by txt2tags (http://txt2tags.org)
280.. cmdline: txt2tags -q --no-rc -i table.t2t -t rst