Re: simple table without formatting

Guenter Milde via Docutils-users <[email protected]> Mon, 21 Feb 2022 13:57:13 -0000 (UTC)
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2022-02-20, Wol wrote:
> On 20/02/2022 18:30, Guenter Milde via Docutils-users wrote:
>> On 2022-02-20, Wols Lists wrote:

>> ...

>>> Okay, done a bit of googling, ended up with this, and I've still got
>>> grid lines everywhere ...
>>> .. table::
>>>      :class: borderless
>>> =========== =========================================================
>>> Item-Id -   A character string (maximum 48 characters) which
>>>               uniquely identifies an item within a file. The item-id
>>>               may include any characters except system delimiters,
>>>               however the use of blanks, single quotes, quotes,
>>>               commas, and backslash characters may require special
>>>               considerations.
>> In order to get it working this way, you need to*nest*  the table in the
>> directive (i.e. indent it to the same amount as the second line):

>> .. table::
>>     :class:  borderless

>>     ============== ===================================================
>>     Item-Id -      A character string (maximum 48 characters) which
>>                    uniquely identifies an item within a file.

> /home/anthony/gitstuff/ScarletDME/docs/source/SMA/SMA301.rst:80: 
> WARNING: Error in "table" directive:
> invalid option block.

> .. table::
>     :class:  borderless
>     =========== =========================================================
>     Item-Id -   A character string (maximum 48 characters) which

You are missing the empty line between the option block and the table!

> > In Sphinx, the "class" directive is used for other purposes by default
> > and must be activated in the setup.py config file.

> ??? What setup file? Where? How? Is this the cause of my error above? Is 
> it the conf.py file?

No.  See
https://docutils.sourceforge.io/docs/user/config.html#configuration-files
Ask on the Sphinx list where Sphinx expects a project-specific Docutils 
configuration file.

Günter



_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.