Eliminate extra newlines around doxygen python block math
Eliminate extra leading and trailing newlines around the \f[ and \f{
block math commands for doxygen comment translation for python.
Update tests accordingly.
This commit is contained in:
parent
c52bed2e66
commit
08fc4a02b4
2 changed files with 0 additions and 7 deletions
|
|
@ -90,13 +90,10 @@ r""":raises: SuperError
|
||||||
|
|
||||||
:math:`\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}`
|
:math:`\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}`
|
||||||
|
|
||||||
|
|
||||||
.. math::
|
.. math::
|
||||||
|
|
||||||
\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
|
\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. math::
|
.. math::
|
||||||
|
|
||||||
\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
|
\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
|
||||||
|
|
@ -111,7 +108,6 @@ r""":raises: SuperError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
This will only appear in hmtl""")
|
This will only appear in hmtl""")
|
||||||
|
|
||||||
comment_verifier.check(inspect.getdoc(doxygen_translate_all_tags.func05),
|
comment_verifier.check(inspect.getdoc(doxygen_translate_all_tags.func05),
|
||||||
|
|
|
||||||
|
|
@ -446,7 +446,6 @@ void PyDocConverter::handleMath(DoxygenEntity &tag, std::string &translatedComme
|
||||||
indent.Init(translatedComment, m_indent);
|
indent.Init(translatedComment, m_indent);
|
||||||
|
|
||||||
trimWhitespace(translatedComment);
|
trimWhitespace(translatedComment);
|
||||||
translatedComment += '\n';
|
|
||||||
|
|
||||||
const string formulaIndent = indent.getFirstLineIndent();
|
const string formulaIndent = indent.getFirstLineIndent();
|
||||||
translatedComment += formulaIndent;
|
translatedComment += formulaIndent;
|
||||||
|
|
@ -480,8 +479,6 @@ void PyDocConverter::handleMath(DoxygenEntity &tag, std::string &translatedComme
|
||||||
|
|
||||||
if (inlineFormula) {
|
if (inlineFormula) {
|
||||||
translatedComment += "`";
|
translatedComment += "`";
|
||||||
} else {
|
|
||||||
translatedComment += '\n';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue