Special handling for python doctest code blocks
A doctest code block begins with ">>>" and is not indented. Identify these in doxygen comments and treat them accordingly. Also add check to padCodeAndVerbatimBlocks for these because Sphinx requires an empty line before. Add test case to doxygen_code_blocks.i.
This commit is contained in:
parent
5230afb3e1
commit
4a5a86ba91
3 changed files with 35 additions and 13 deletions
|
|
@ -50,4 +50,9 @@ A code block for python:
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
print('hello world')""")
|
||||
print('hello world')
|
||||
|
||||
A python doctest example:
|
||||
|
||||
>>> 1 + 1
|
||||
2""")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue