Mercurial > hg
comparison tests/test-minirst.py @ 15039:c981f4a9ea74
minirst: add a helper function to build an RST table from an array
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 11 Aug 2011 22:40:43 -0500 |
parents | df47381b41d6 |
children | e2df5b866d22 |
comparison
equal
deleted
inserted
replaced
15038:3f4d337cb80a | 15039:c981f4a9ea74 |
---|---|
230 Empty comment above | 230 Empty comment above |
231 """ | 231 """ |
232 | 232 |
233 debugformat('comments', comments, 30) | 233 debugformat('comments', comments, 30) |
234 | 234 |
235 table = """ | 235 |
236 === === === | 236 data = [['a', 'b', 'c'], |
237 a b c | 237 ['1', '2', '3'], |
238 === === === | 238 ['foo', 'bar', 'baz this list is very very very long man']] |
239 1 2 3 | 239 |
240 foo bar baz | 240 table = minirst.maketable(data, 2, True) |
241 aa bb sdfsdfsdf this line is way too long for this cell. | 241 |
242 === === === | 242 print table |
243 """ | |
244 | 243 |
245 debugformat('table', table, 30) | 244 debugformat('table', table, 30) |