summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
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>";
}