summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-11-26 12:18:42 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-11-26 12:18:42 (GMT)
commit2bcda330add9279f777990b450f182be16b67e80 (patch)
tree15394de125753f67a3de738e10dbd052465aec18 /src/htmlgen.cpp
parent01a8fb038a4a012a5d1f8ab60a4a2777c8aee021 (diff)
downloadDoxygen-2bcda330add9279f777990b450f182be16b67e80.zip
Doxygen-2bcda330add9279f777990b450f182be16b67e80.tar.gz
Doxygen-2bcda330add9279f777990b450f182be16b67e80.tar.bz2
Incorrect tag sequence for xhtml with class diagram possible
In case of a class diagram without mapping information the `map` tag is written without content. This is not allowed and results in xhtml (as reported by xmllint) in: `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 ()` By adding a dummy 'paragraph' `<div/>` this can be overcome, The closing tag for `map` has been placed on a bit a more logical place, showing the open and close tag together. Problem can be seen with the default doxygen test 11 (`[011_category.m]: test the \interface and \category command`).
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index 581f3f2..357c048 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -1397,6 +1397,7 @@ void HtmlGenerator::endClassDiagram(const ClassDiagram &d,
t << "_map\">" << endl;
d.writeImage(t,dir,relPath,fileName);
+ t << "<div/></map>" << endl;
t << " </div>";
endSectionContent(t);
m_sectionCount++;