diff options
author | albert-github <albert.tests@gmail.com> | 2020-06-13 12:55:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-13 12:55:13 (GMT) |
commit | e53fa89addc9659ad406298d27a6376d1eb53e0d (patch) | |
tree | eaa7ea5f3aa70a61a2ec3343cd6dacf7dd601aa2 /src/dotgraph.cpp | |
parent | e7637f9dd977e9821394e7bed4dec02aec41ab9e (diff) | |
download | Doxygen-e53fa89addc9659ad406298d27a6376d1eb53e0d.zip Doxygen-e53fa89addc9659ad406298d27a6376d1eb53e0d.tar.gz Doxygen-e53fa89addc9659ad406298d27a6376d1eb53e0d.tar.bz2 |
Incorrect label in map of dot files in xhtml (#7840)
When a filename of a file starts with a digit the mapping of the resulting dot files results in message like:
```
Syntax of value for attribute id of map is not valid
```
an id cannot start with a digit, so an "a" is placed in front of it (unconditionally to overcome problems with a double label id i.e filename 087.cpp and a087.cpp).
Diffstat (limited to 'src/dotgraph.cpp')
-rw-r--r-- | src/dotgraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotgraph.cpp b/src/dotgraph.cpp index c0cc4fd..1ad85e1 100644 --- a/src/dotgraph.cpp +++ b/src/dotgraph.cpp @@ -236,7 +236,7 @@ void DotGraph::generateCode(FTextStream &t) else // add link to bitmap file with image map { if (!m_noDivTag) t << "<div class=\"center\">"; - t << "<img src=\"" << relImgName() << "\" border=\"0\" usemap=\"#" << getMapLabel() << "\" alt=\"" << getImgAltText() << "\"/>"; + t << "<img src=\"" << relImgName() << "\" border=\"0\" usemap=\"#" << correctId(getMapLabel()) << "\" alt=\"" << getImgAltText() << "\"/>"; if (!m_noDivTag) t << "</div>"; t << endl; if (m_regenerate || !insertMapFile(t, absMapName(), m_relPath, getMapLabel())) |