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:
parent
9829bdf5b1
commit
e62c88883f
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Author: Zubr
|
|||
|
||||
.. code-block:: c++
|
||||
|
||||
some test code
|
||||
some test code
|
||||
|
||||
|
||||
Conditional comment: SOMECONDITION
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue