Skip to content

Commit f9be6cb

Browse files
committed
Fixes for html output
1 parent 1bcdbda commit f9be6cb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/htmldocvisitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ void HtmlDocVisitor::operator()(const DocSection &s)
14601460
{
14611461
if (m_hide) return;
14621462
forceEndParagraph(s);
1463-
m_t << "<h" << s.level() << ">";
1463+
m_t << "<h" << s.level() << " class=\"doxsection\">";
14641464
m_t << "<a class=\"anchor\" id=\"" << s.anchor();
14651465
m_t << "\"></a>\n";
14661466
if (s.title())

src/htmlgen.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,13 +1838,13 @@ void HtmlGenerator::startSection(const QCString &lab,const QCString &,SectionTyp
18381838
{
18391839
switch(type.level())
18401840
{
1841-
case SectionType::Page: m_t << "\n\n<h1>"; break;
1842-
case SectionType::Section: m_t << "\n\n<h2>"; break;
1843-
case SectionType::Subsection: m_t << "\n\n<h3>"; break;
1844-
case SectionType::Subsubsection: m_t << "\n\n<h4>"; break;
1845-
case SectionType::Paragraph: m_t << "\n\n<h5>"; break;
1846-
case SectionType::Subparagraph: m_t << "\n\n<h6>"; break;
1847-
case SectionType::Subsubparagraph: m_t << "\n\n<h6>"; break;
1841+
case SectionType::Page: m_t << "\n\n<h1 class=\"doxsection\">"; break;
1842+
case SectionType::Section: m_t << "\n\n<h2 class=\"doxsection\">"; break;
1843+
case SectionType::Subsection: m_t << "\n\n<h3 class=\"doxsection\">"; break;
1844+
case SectionType::Subsubsection: m_t << "\n\n<h4 class=\"doxsection\">"; break;
1845+
case SectionType::Paragraph: m_t << "\n\n<h5 class=\"doxsection\">"; break;
1846+
case SectionType::Subparagraph: m_t << "\n\n<h6 class=\"doxsection\">"; break;
1847+
case SectionType::Subsubparagraph: m_t << "\n\n<h6 class=\"doxsection\">"; break;
18481848
default: ASSERT(0); break;
18491849
}
18501850
m_t << "<a id=\"" << lab << "\" name=\"" << lab << "\"></a>";
@@ -2045,7 +2045,7 @@ void HtmlGenerator::startMemberItem(const QCString &anchor,MemberItemType type,c
20452045
m_t << "<table class=\"memberdecls\">\n";
20462046
m_emptySection=FALSE;
20472047
}
2048-
m_t << "<tr class=\"memitem:" << anchor;
2048+
m_t << "<tr class=\"memitem:" << convertToId(anchor);
20492049
if (!inheritId.isEmpty())
20502050
{
20512051
m_t << " inherit " << inheritId;
@@ -2075,7 +2075,7 @@ void HtmlGenerator::startMemberTemplateParams()
20752075
void HtmlGenerator::endMemberTemplateParams(const QCString &anchor,const QCString &inheritId)
20762076
{
20772077
m_t << "</td></tr>\n";
2078-
m_t << "<tr class=\"memitem:" << anchor;
2078+
m_t << "<tr class=\"memitem:" << convertToId(anchor);
20792079
if (!inheritId.isEmpty())
20802080
{
20812081
m_t << " inherit " << inheritId;
@@ -2515,7 +2515,7 @@ void HtmlGenerator::writeGraphicalHierarchy(DotGfxHierarchyTable &g)
25152515

25162516
void HtmlGenerator::startMemberGroupHeader(const QCString &id,bool)
25172517
{
2518-
m_t << "<tr id=\"" << id << "\"class=\"groupHeader\"><td colspan=\"2\"><div class=\"groupHeader\">";
2518+
m_t << "<tr id=\"" << id << "\" class=\"groupHeader\"><td colspan=\"2\"><div class=\"groupHeader\">";
25192519
}
25202520

25212521
void HtmlGenerator::endMemberGroupHeader()

0 commit comments

Comments
 (0)