Fix python doxygen indentation for inline \code command

If \code was used inline, it produced an extra indent versus block
usage.  This extra indent was also stored in the test output.  This
update resolves this by simply removing a space that was being added
unnecessarily in handleTagVerbatim.  Updating test case output
accordingly.
This commit is contained in:
John McFarland 2019-05-23 20:01:09 -05:00
commit e62c88883f
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ Not everything works right now...
.. code-block:: c++
some test code""")
some test code""")
comment_verifier.check(inspect.getdoc(doxygen_translate_all_tags.func02),
r"""Conditional comment: SOMECONDITION

View file

@ -23,7 +23,7 @@ Author: Zubr
.. code-block:: c++
some test code
some test code
Conditional comment: SOMECONDITION

View file

@ -519,7 +519,7 @@ void PyDocConverter::handlePlainString(DoxygenEntity &tag, std::string &translat
}
void PyDocConverter::handleTagVerbatim(DoxygenEntity &tag, std::string &translatedComment, const std::string &arg) {
translatedComment += arg + " ";
translatedComment += arg;
for (DoxygenEntityListCIt it = tag.entityList.begin(); it != tag.entityList.end(); it++) {
translatedComment += it->data;
}