diff options
author | albert-github <albert.tests@gmail.com> | 2018-12-03 10:27:09 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-12-03 10:27:09 (GMT) |
commit | 400de444ef9b0569b2803dc4a8e5497c181384ce (patch) | |
tree | 41f8e46b170e4b93fd477fe9bc9db55ee0013020 /src/msc.cpp | |
parent | d33a129d784f2b0f823f14a008e929513b302ad3 (diff) | |
download | Doxygen-400de444ef9b0569b2803dc4a8e5497c181384ce.zip Doxygen-400de444ef9b0569b2803dc4a8e5497c181384ce.tar.gz Doxygen-400de444ef9b0569b2803dc4a8e5497c181384ce.tar.bz2 |
Incorrect tag sequence possible for images possible in case of xhtml
Message:
`< Element map content does not follow the DTD, expecting ((p | h1 | h2 | h3 | h4 | h5 | h6 | div | ul | ol | dl | menu | dir | pre | hr | blockquote | address | center | noframes | isindex | fieldset
| table | form | noscript | ins | del | script)+ | area+), got (area area div)`
The problem first surfaced with test 11 (empty map tag), but the solution given at that moment (`<div/>)`) did work for test 11, but was not correct for test 27.
Problem can be seen with the default doxygen test 27 (`[027_extends.c]: test the \extends, \implements, \memberof, \private, and \public commands`).
Diffstat (limited to 'src/msc.cpp')
-rw-r--r-- | src/msc.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/msc.cpp b/src/msc.cpp index 5b73d65..29f96ac 100644 --- a/src/msc.cpp +++ b/src/msc.cpp @@ -217,9 +217,16 @@ void writeMscImageMapFromFile(FTextStream &t,const QCString &inFile, default: t << "unknown"; } - t << "\" alt=\"" - << baseName << "\" border=\"0\" usemap=\"#" << mapName << "\"/>" << endl; QCString imap = getMscImageMapFromFile(inFile,outDir,relPath,context); - t << "<map name=\"" << mapName << "\" id=\"" << mapName << "\">" << imap << "</map>" << endl; + if (!imap.isEmpty()) + { + t << "\" alt=\"" + << baseName << "\" border=\"0\" usemap=\"#" << mapName << "\"/>" << endl; + t << "<map name=\"" << mapName << "\" id=\"" << mapName << "\">" << imap << "</map>" << endl; + } + else + { + t << "\" alt=\"" << baseName << "\" border=\"0\"/>" << endl; + } } |