On Tue, Jul 1, 2008 at 14:29, Peter McNabb <peter@...> wrote:
> Is there a way to start a list-table in one file:
> And have it included in a main file with more rows?
No. The "include" directive does not allow any partial body-level
construct (i.e. you can't begin a construct in the included file and
continue in the main file, or vice-versa).
> .. include:: table_head.rst
> * - dataA1
> - dataB2
> * - dataA3
> - dataB4
> I use the same table structure multiple times in a document and would rather
> have the definition in one place instead of many. However, the way I've written
> it yields:
> 'Error in "include" directive: no content permitted.'
That's because any indented text following a directive is parsed as
the directive's content. But the "include" directive doesn't allow
David Goodger <http://python.net/~goodger>