fixed bug in handling of ref tag in Java, added handling in Python
This commit is contained in:
parent
4e2c1e3ac3
commit
4663fce63c
8 changed files with 71 additions and 26 deletions
|
|
@ -693,11 +693,23 @@ int DoxygenParser::addCommandUnique(const std::string &theCommand,
|
|||
return 0;
|
||||
}
|
||||
DoxygenEntityList aNewList;
|
||||
TokenListCIt endOfLine = getOneLine(tokList);
|
||||
if (endOfLine != m_tokenListIt) {
|
||||
aNewList = parse(endOfLine, tokList);
|
||||
}
|
||||
aNewList.push_front(DoxygenEntity("plainstd::string", name));
|
||||
// TokenListCIt endOfLine = getOneLine(tokList);
|
||||
// if (endOfLine != m_tokenListIt) {
|
||||
// aNewList = parse(endOfLine, tokList);
|
||||
//}
|
||||
TokenListCIt tmpIt = m_tokenListIt;
|
||||
std::string refTitle = getNextWord();
|
||||
// If title is following the ref tag, it must be quoted. Otherwise
|
||||
// doxy puts link on ref id.
|
||||
if (refTitle.size() > 1 && refTitle[0] == '"') {
|
||||
// remove quotes
|
||||
refTitle = refTitle.substr(1, refTitle.size() - 2);
|
||||
aNewList.push_back(DoxygenEntity("plainstd::string", refTitle));
|
||||
} else {
|
||||
// no quoted string is following, so we have to restore iterator
|
||||
m_tokenListIt = tmpIt;
|
||||
}
|
||||
doxyList.push_back(DoxygenEntity(theCommand, aNewList));
|
||||
}
|
||||
// \subpage <name> ["(text)"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue