In one of the sections of one technical document that I'm writing using reStructuredText I want to include a interactive session and this output.
Example:
>>> help(module)
asdasd
asdasd
asdasd
When I process with sphinx-build to build a html output the output is not the expected because the blank line it breaks the block.
There is any way to fix the issue?
Doctest blocks are text blocks which begin with ">>> ", the Python interactive interpreter main prompt, and end with a blank line. --rST Markup Specification
You may use an indented literal block or a "code" or "code-block" directive.
.. code:: pycon
>>> help(module)
asdasd
asdasd
asdasd
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