Mercurial > public > mercurial-scm > hg-stable
diff tests/test-minirst.py @ 15037:df47381b41d6
minirst: add simple table support
This adds a subset of the 'simple table' support from RST to allow
formatting of options lists through RST. Table columns are
automatically sized based on contents, with line wrapping in the last
column.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 11 Aug 2011 22:05:57 -0500 |
parents | 4936a04b6792 |
children | c981f4a9ea74 |
line wrap: on
line diff
--- a/tests/test-minirst.py Thu Aug 11 22:05:31 2011 -0500 +++ b/tests/test-minirst.py Thu Aug 11 22:05:57 2011 -0500 @@ -231,3 +231,15 @@ """ debugformat('comments', comments, 30) + +table = """ + === === === + a b c + === === === + 1 2 3 + foo bar baz + aa bb sdfsdfsdf this line is way too long for this cell. + === === === +""" + +debugformat('table', table, 30)