summaryrefslogtreecommitdiffstats
path: root/src/tooltip.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-01-11 18:13:28 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-01-11 18:13:28 (GMT)
commita2e30e57062cb6e826bbb87dec3db433fcc20260 (patch)
tree9ffa0988ef8c17de277562ab70244c89fb0008a4 /src/tooltip.cpp
parent121ec253945f6563ac6731e3596cd9beaa39cb72 (diff)
downloadDoxygen-a2e30e57062cb6e826bbb87dec3db433fcc20260.zip
Doxygen-a2e30e57062cb6e826bbb87dec3db433fcc20260.tar.gz
Doxygen-a2e30e57062cb6e826bbb87dec3db433fcc20260.tar.bz2
Invalid id possible with tooltips
In case a filename starts with a number the `id` also starts with a number and this is not allowed in XHTML and results in the message: `Syntax of value for attribute id of div is not valid` on other places it has been solved by placing an `a` as first character, this is done here as well but also needs to be don in the transformation from reference to tooltip id (htmlgen.cpp)
Diffstat (limited to 'src/tooltip.cpp')
-rw-r--r--src/tooltip.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tooltip.cpp b/src/tooltip.cpp
index 3b128a9..91da583 100644
--- a/src/tooltip.cpp
+++ b/src/tooltip.cpp
@@ -84,6 +84,7 @@ void TooltipManager::addTooltip(Definition *d)
{
id+="_"+anc;
}
+ id = "a" + id;
if (p->tooltipInfo.find(id)==0)
{
p->tooltipInfo.insert(id,d);