Fixed param description alignment in PyDoc translator
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13667 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
99bc7e9eb0
commit
dfad1c8156
1 changed files with 4 additions and 8 deletions
|
|
@ -256,22 +256,18 @@ void PyDocConverter::handleTagImage(DoxygenEntity& tag, std::string& translatedC
|
|||
}
|
||||
void PyDocConverter::handleTagParam(DoxygenEntity& tag, std::string& translatedComment, std::string&) {
|
||||
std::string dummy;
|
||||
if (tag.entityList.size() < 2) {
|
||||
// TODO: log error
|
||||
if (tag.entityList.size() < 2)
|
||||
return;
|
||||
}
|
||||
DoxygenEntity paramNameEntity = *tag.entityList.begin();
|
||||
std::string paramDescription = "-- ";
|
||||
|
||||
DoxygenEntity paramNameEntity = *tag.entityList.begin();
|
||||
tag.entityList.pop_front();
|
||||
handleParagraph(tag, paramDescription, dummy);
|
||||
paramDescription = justifyString(paramDescription, DOC_PARAM_STRING_LENGTH);
|
||||
|
||||
std::string paramType = getParamType(paramNameEntity.data);
|
||||
if (!paramType.size())
|
||||
paramType = "none";
|
||||
|
||||
translatedComment += paramNameEntity.data + " (" + paramType + ")" + paramDescription;
|
||||
translatedComment += paramNameEntity.data + " (" + paramType + ") -- ";
|
||||
handleParagraph(tag, translatedComment, dummy);
|
||||
}
|
||||
void PyDocConverter::handleTagWrap(DoxygenEntity& tag, std::string& translatedComment, std::string &arg) {
|
||||
if (tag.entityList.size()) { // do not include empty tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue