diff options
author | John McFarland <mcfarljm@gmail.com> | 2019-05-25 15:12:05 -0500 |
---|---|---|
committer | John McFarland <mcfarljm@gmail.com> | 2019-05-25 16:25:54 -0500 |
commit | 98ae66b6fcaaee19f62141bb3c30de0ae6ff7cca (patch) | |
tree | c59ac9d2e4864edcae621fa76a0e7c0b5b792fb0 /Source | |
parent | 08fc4a02b4df7f4a53b375e37820c88b375fe9a8 (diff) | |
download | swig-98ae66b6fcaaee19f62141bb3c30de0ae6ff7cca.tar.gz |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Doxygen/pydoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Doxygen/pydoc.cxx b/Source/Doxygen/pydoc.cxx index 688318dd9..3eb855058 100644 --- a/Source/Doxygen/pydoc.cxx +++ b/Source/Doxygen/pydoc.cxx @@ -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); |