Fix for missing space after \endlink in doxygen
The "endlink" command is processed in processWordCommands, which by default skips space occuring after the command, which is intended for removing leading space from a command argument. For "end" commands, we don't want to do this. Note that certain end commands such as "endcode" aren't processed by processWordCommands (believe addCommandUnique ends up handling them). Update usage of \link in doxygen_translate_all_tags.i to test handling of space after \endlink. Tweaking some of the usage in doxygen_misc_constructs.i to remove what seems to be an extra space from the input (otherwise we would need to add an extra space to the expected output).
This commit is contained in:
parent
ae0efd3d74
commit
61dbc4b50c
5 changed files with 9 additions and 5 deletions
|
|
@ -1196,6 +1196,10 @@ void DoxygenParser::processWordCommands(size_t &pos, const std::string &line) {
|
|||
// do it every time.)
|
||||
if (getBaseCommand(cmd) == CMD_CODE) skipLeadingSpace = true;
|
||||
else skipLeadingSpace = false;
|
||||
} else if (cmd.substr(0,3) == "end") {
|
||||
// If processing an "end" command such as "endlink", don't skip
|
||||
// the space before the next string
|
||||
skipLeadingSpace = false;
|
||||
}
|
||||
|
||||
if (skipLeadingSpace) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue