summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-10-27 13:00:26 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-10-27 13:00:26 (GMT)
commit2e072c9e3cbc748ac2cdf6453c16d95cbfabf9d7 (patch)
tree5adc0b203d3e0d61b3d5885f7a393a191ce0c8a6 /src/htmldocvisitor.cpp
parent985ca18d4f6a9d41001a18ff6b007831bd740173 (diff)
downloadDoxygen-2e072c9e3cbc748ac2cdf6453c16d95cbfabf9d7.zip
Doxygen-2e072c9e3cbc748ac2cdf6453c16d95cbfabf9d7.tar.gz
Doxygen-2e072c9e3cbc748ac2cdf6453c16d95cbfabf9d7.tar.bz2
Multiple addindex commands in HTML with same name
It is possible to specify an addindex multiple times. In HTML this resulted in - a 'a' tag with with the same 'name' attribute - in CHM only one occurrence was shown. this has been corrected. (see e.g. the index of 'flex' in the CHM manual generated ffrom master).
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index 6e0c62d..5f0e411 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -67,7 +67,12 @@ static const char *contexts[10] =
static QCString convertIndexWordToAnchor(const QString &word)
{
static char hex[] = "0123456789abcdef";
+ static int cnt = 0;
QCString result="a";
+ QCString cntStr;
+ result += cntStr.setNum(cnt);
+ result += "_";
+ cnt++;
const char *str = word.data();
unsigned char c;
if (str)