diff options
author | albert-github <albert.tests@gmail.com> | 2018-06-29 14:46:09 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-06-29 14:46:09 (GMT) |
commit | 12eaf6afe565ae1f7d440080205ddb76585bd31d (patch) | |
tree | 94c4a9072b0cb00c826149bc629821166b431c25 /src/htmlgen.cpp | |
parent | 154e877cc2e8b10091d7e0068b6f6d5793cd29f3 (diff) | |
download | Doxygen-12eaf6afe565ae1f7d440080205ddb76585bd31d.zip Doxygen-12eaf6afe565ae1f7d440080205ddb76585bd31d.tar.gz Doxygen-12eaf6afe565ae1f7d440080205ddb76585bd31d.tar.bz2 |
Bug 693515 - The 'Examples:' section; bad/missing style and incorrect spelling
Made implementation analogous to the implementation for parameters in respect to padding and the use of colon (:).
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index 740b2f5..8f2f415 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -1942,10 +1942,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) { @@ -1958,8 +1968,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>"; } |