summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-08-19 16:09:33 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-08-19 16:09:33 (GMT)
commita77fed0a607887a9ea023791b13e227a44eb82fc (patch)
tree0289ba89ab040a99082fce236e1278e3a88d37f0 /src/htmlgen.cpp
parentcf5f1ed593fefcef2cceee69dec44e7daa5e8c12 (diff)
parent12eaf6afe565ae1f7d440080205ddb76585bd31d (diff)
downloadDoxygen-a77fed0a607887a9ea023791b13e227a44eb82fc.zip
Doxygen-a77fed0a607887a9ea023791b13e227a44eb82fc.tar.gz
Doxygen-a77fed0a607887a9ea023791b13e227a44eb82fc.tar.bz2
Merge branch 'feature/bug_693515' of https://github.com/albert-github/doxygen into albert-github-feature/bug_693515
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index 87bc10a..3f60ade 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -1943,10 +1943,20 @@ void HtmlGenerator::endDescTableData()
t << "</td>";
}
-void HtmlGenerator::startSimpleSect(SectionTypes,
+void HtmlGenerator::startSimpleSect(SectionTypes sect,
const char *filename,const char *anchor,
const char *title)
{
+ if (sect == BaseOutputDocInterface::Examples)
+ {
+ QCString className;
+ className="examples";
+ t << "<dl class=\"" << className << "\"><dt>";
+ docify(title);
+ t << "</dt>" << endl;
+ return;
+ }
+
t << "<dl><dt><b>";
if (filename)
{
@@ -1959,8 +1969,13 @@ void HtmlGenerator::startSimpleSect(SectionTypes,
t << "</b></dt>";
}
-void HtmlGenerator::endSimpleSect()
+void HtmlGenerator::endSimpleSect(SectionTypes sect)
{
+ if (sect == BaseOutputDocInterface::Examples)
+ {
+ t << "</dl>" << endl;
+ return;
+ }
t << "</dl>";
}