Translate Doxygen code blocks to Sphinx code blocks.

This ensures they are formatted correctly and syntax highlighted (currently
always as C++ code).
This commit is contained in:
Vadim Zeitlin 2014-08-06 18:18:20 +02:00
commit d678891e43
5 changed files with 65 additions and 4 deletions

View file

@ -50,7 +50,10 @@ commentVerifier.check(doxygen_basic_translate.function4.__doc__,
Warning: This may not work as expected
int main() { while(true); }
.. code-block:: c++
int main() { while(true); }
}
"""

View file

@ -36,7 +36,11 @@ r"""
'citationword'
some test code
.. code-block:: c++
some test code
""")
commentVerifier.check(doxygen_translate_all_tags.func02.__doc__,

View file

@ -22,7 +22,11 @@ r"""
'citationword'
some test code
.. code-block:: c++
some test code
Conditional comment: SOMECONDITION
Some conditional comment