Fix bug in doxygen python code block indent

If a certain doxygen comment style was used that included an
additional space, then translated Python comment code block indent was
not correct (it included the extra space).  This doxygen comment style
was not previously represented in the test cases; a new test case will
be added in a subsequent commit.
This commit is contained in:
John McFarland 2019-05-25 15:12:05 -05:00
commit 98ae66b6fc

View file

@ -498,7 +498,7 @@ void PyDocConverter::handleCode(DoxygenEntity &tag, std::string &translatedComme
translatedComment += ".. code-block:: c++\n\n";
// For now on, use extra indent level for all the subsequent lines.
codeIndent += m_indent;
codeIndent = m_indent;
std::string code;
handleTagVerbatim(tag, code, arg);