diff options
author | albert-github <albert.tests@gmail.com> | 2018-10-31 12:42:58 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-10-31 12:42:58 (GMT) |
commit | 2e03d23d0385dbbe39f5b6a67ab480734f285e76 (patch) | |
tree | b7524bf9066e10493bf8d13513e38b845ffde02e | |
parent | f84d7f538cc551d969b23ad591b4fe6c9f311c15 (diff) | |
download | Doxygen-2e03d23d0385dbbe39f5b6a67ab480734f285e76.zip Doxygen-2e03d23d0385dbbe39f5b6a67ab480734f285e76.tar.gz Doxygen-2e03d23d0385dbbe39f5b6a67ab480734f285e76.tar.bz2 |
Multiple `\xreflist` in one page with same key
In case there are multiple `\xreflist` commands with the same key only the first item has a correct linking possibility, the subsequent items don't have it.
Resulting in warnings in e.g. docbook and LaTeX output
-rw-r--r-- | src/reflist.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp index e551743..c48ba23 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -148,8 +148,6 @@ void RefList::generatePage() for (it.toFirst();(item=it.current());++it) { doc += " <dt>"; - doc += "\\anchor "; - doc += item->listAnchor; doc += "\n"; if (item->scope) { @@ -174,13 +172,18 @@ void RefList::generatePage() // escape \'s in argument list (see issue #6533) doc += substitute(substitute(item->args,"@","@@"),"\\","\\\\"); } - doc += "</dt><dd> "; + doc += "</dt><dd> \\anchor "; + doc += item->listAnchor; + doc += " "; doc += item->text; QListIterator<RefItem> li(item->extraItems); RefItem *extraItem; for (li.toFirst();(extraItem=li.current());++li) { - doc += "<p>" + extraItem->text; + doc += "<p> \\anchor "; + doc += extraItem->listAnchor; + doc += " "; + doc += extraItem->text; } doc += "</dd>"; } |