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: W开发者_运维百科ARNING/2
Literal block expected; none found.
The empty lines in the list are indented by a single space. Any ideas?
You haven't indented enough. Think of it this way.
- List item 1
::
code sample...
code sample...
- List item 2
::
code sample...
code sample...
精彩评论