Merge pull request #39 from diorcety/gsoc2012-doxygen
This merge fixes doxygen '\link' tag when converted to Javadoc. Before this fix:
\link SomeAnotherClass#classMethodExtended(int, int) a link text \endlink --> {@link SomeAnotherClass#classMethodExtended(int,int) }
Result after the fix:
{@link SomeAnotherClass#classMethodExtended(int,int) a link text}
Test case 'doxygen_parsing.i' was updated to reflect this fix.
This commit is contained in:
commit
ec3240ecfd
1 changed files with 2 additions and 1 deletions
|
|
@ -646,6 +646,7 @@ string JavaDocConverter::convertLink(string linkObject)
|
||||||
string paramsStr = linkObject.substr(lbracePos + 1,
|
string paramsStr = linkObject.substr(lbracePos + 1,
|
||||||
rbracePos - lbracePos - 1);
|
rbracePos - lbracePos - 1);
|
||||||
// strip the params, to fill them later
|
// strip the params, to fill them later
|
||||||
|
string additionalObject = linkObject.substr(rbracePos + 1, string::npos);
|
||||||
linkObject = linkObject.substr(0, lbracePos);
|
linkObject = linkObject.substr(0, lbracePos);
|
||||||
|
|
||||||
// find all the params
|
// find all the params
|
||||||
|
|
@ -720,7 +721,7 @@ string JavaDocConverter::convertLink(string linkObject)
|
||||||
}
|
}
|
||||||
linkObject += ")";
|
linkObject += ")";
|
||||||
|
|
||||||
return linkObject;
|
return linkObject + additionalObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
void JavaDocConverter::handleTagLink(DoxygenEntity& tag,
|
void JavaDocConverter::handleTagLink(DoxygenEntity& tag,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue