Remove extra newline before code block in doxygen python output
Remove a newline character that was added to the translated comments prior to the code block. This way the structure of the pydoc output more closely resembles that of the original doxygen comments. Updating tests accordingly.
This commit is contained in:
parent
08ac56b7f2
commit
3476565665
5 changed files with 0 additions and 5 deletions
|
|
@ -46,7 +46,6 @@ Title: Minuses:
|
||||||
* it\'s null
|
* it\'s null
|
||||||
|
|
||||||
Warning: This may not work as expected
|
Warning: This may not work as expected
|
||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
int main() { while(true); }
|
int main() { while(true); }
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ Title: Minuses:
|
||||||
* it\'s null
|
* it\'s null
|
||||||
|
|
||||||
Warning: This may not work as expected
|
Warning: This may not work as expected
|
||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
int main() { while(true); }
|
int main() { while(true); }
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ Not everything works right now...
|
||||||
|
|
||||||
'citationword'
|
'citationword'
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
some test code""")
|
some test code""")
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ Author: Zubr
|
||||||
|
|
||||||
'citationword'
|
'citationword'
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
some test code
|
some test code
|
||||||
|
|
|
||||||
|
|
@ -496,7 +496,6 @@ void PyDocConverter::handleCode(DoxygenEntity &tag, std::string &translatedComme
|
||||||
IndentGuard indent(translatedComment, m_indent);
|
IndentGuard indent(translatedComment, m_indent);
|
||||||
|
|
||||||
trimWhitespace(translatedComment);
|
trimWhitespace(translatedComment);
|
||||||
translatedComment += '\n';
|
|
||||||
|
|
||||||
// Use the current indent for the code-block line itself.
|
// Use the current indent for the code-block line itself.
|
||||||
translatedComment += indent.getFirstLineIndent();
|
translatedComment += indent.getFirstLineIndent();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue