I have a list item in my rst file that I would like to put a literal block into, but I am unable to get the literal block to end properly.
This is my rst:
1. Item 1 (not literal)
2. Item 2::
MyCode.example()
Description of the code shown above (not literal)
I would like the paragraph starting with Description
to be outside the literal block above it, but still part of list item #2. The only workaround I have been able to come up with is this:
1. Item 1 (not literal)
2. Item 2:
::
MyCode.example()
Description of the code shown above (not literal)
This allows the non-literal text to return to the previous level of indentation, making everything look just the way I want it to. However, I would like to have the ::
in the first line of the list item.
Is it possible to end the literal block explicitly in a way that would allow the ::
to stay in the first line of the list item?