I am trying to include source code in bullet lists with reStructuredText; like this:
- List item 1 :: code sample... code sample... - List item 2 :: code sample... code sample...
However, I get the following warning: System Message: WARNING/2 Literal block expected; none found.
The empty lines in the list are indented by a single space. Any ideas?
For comments, add 2 periods .. followed by a newline and then your comment indented.
RST is a powerful and straightforward markup language that, in combination with Sphinx, provides a wide range of facilities for intelligent and appealing documentation creation. It uses simple and implicit syntax to introduce a variety of content elements such as titles, code blocks, vertical lists, and many others.
You haven't indented enough. Think of it this way.
- List item 1 :: code sample... code sample... - List item 2 :: code sample... code sample...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With