Applied Christopher Mangiardi's patch that fixes incorrect comment placement in python single line functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d590621eae
commit
ce39e74f28
1 changed files with 2 additions and 1 deletions
|
|
@ -3979,7 +3979,7 @@ public:
|
||||||
if (!have_addtofunc(n)) {
|
if (!have_addtofunc(n)) {
|
||||||
if (!fastproxy || olddefs) {
|
if (!fastproxy || olddefs) {
|
||||||
Printv(f_shadow, tab4, "def ", symname, "(", parms, ")", returnTypeAnnotation(n), ":", NIL);
|
Printv(f_shadow, tab4, "def ", symname, "(", parms, ")", returnTypeAnnotation(n), ":", NIL);
|
||||||
Printv(f_shadow, " return ", funcCall(fullname, callParms), "\n", NIL);
|
Printv(f_shadow, "\n", NIL);
|
||||||
if (doxygen) {
|
if (doxygen) {
|
||||||
String *doxygen_comments;
|
String *doxygen_comments;
|
||||||
if (DoxygenTranslator::getDocumentation(n, PyDoc, doxygen_comments)) {
|
if (DoxygenTranslator::getDocumentation(n, PyDoc, doxygen_comments)) {
|
||||||
|
|
@ -3987,6 +3987,7 @@ public:
|
||||||
Delete(doxygen_comments);
|
Delete(doxygen_comments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Printv(f_shadow, tab8, "return ", funcCall(fullname, callParms), "\n", NIL);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Printv(f_shadow, tab4, "def ", symname, "(", parms, ")", returnTypeAnnotation(n), ":", NIL);
|
Printv(f_shadow, tab4, "def ", symname, "(", parms, ")", returnTypeAnnotation(n), ":", NIL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue