From 2a40448c3855da250561fa4bac01179311831307 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 28 Mar 2014 11:57:26 +0100 Subject: add space between br and / for better compatibility --- src/context.cpp | 2 +- src/htmldocvisitor.cpp | 4 +- src/htmlgen.cpp | 117 ++++++++++++++----------------------------------- src/memberdef.cpp | 2 +- src/vhdldocgen.cpp | 2 +- 5 files changed, 37 insertions(+), 90 deletions(-) diff --git a/src/context.cpp b/src/context.cpp index 9c99453..2d46c86 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -2663,7 +2663,7 @@ class TextGeneratorHtml : public TextGeneratorIntf void writeBreak(int indent) const { - m_ts << "
"; + m_ts << "
"; for (int i=0;i\n"; + m_t << "
\n"; } void HtmlDocVisitor::visit(DocHorRuler *hr) @@ -1780,7 +1780,7 @@ void HtmlDocVisitor::visitPre(DocVhdlFlow *vf) m_t << ""; if (vf->hasCaption()) { - m_t << "
"; + m_t << "
"; } } } diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index e21071c..0d399d3 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -2181,25 +2181,11 @@ void HtmlGenerator::endClassDiagram(const ClassDiagram &d, void HtmlGenerator::startMemberList() { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - //{ - //} - //else - //{ - // t << "" << endl; - //} } // anonymous type: @@ -2254,93 +2240,63 @@ void HtmlGenerator::endMemberTemplateParams(const char *anchor,const char *inher void HtmlGenerator::insertMemberAlign(bool templ) { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - //{ - QCString className = templ ? "memTemplItemRight" : "memItemRight"; - t << " "; - //} + QCString className = templ ? "memTemplItemRight" : "memItemRight"; + t << " "; } void HtmlGenerator::startMemberDescription(const char *anchor,const char *inheritId) { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - //{ if (m_emptySection) { t << "" << endl; m_emptySection=FALSE; } - t << "" << endl; - //} - //else - //{ - // t << "
"; - //} + t << "
" << endl; } void HtmlGenerator::startMemberSections() { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - //{ - m_emptySection=TRUE; // we postpone writing
 "; - //} - //else - //{ - // t << "
"; - //} + t << "
 "; } void HtmlGenerator::endMemberDescription() { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - //{ - t << "
until we actually - // write a row to prevent empty tables, which - // are not valid XHTML! - //} + m_emptySection=TRUE; // we postpone writing
until we actually + // write a row to prevent empty tables, which + // are not valid XHTML! } void HtmlGenerator::endMemberSections() { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - //{ - if (!m_emptySection) - { - t << "
" << endl; - } - //} + if (!m_emptySection) + { + t << "" << endl; + } } void HtmlGenerator::startMemberHeader(const char *anchor) { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - //{ - if (!m_emptySection) - { - t << ""; - m_emptySection=TRUE; - } - if (m_emptySection) - { - t << "" << endl; - m_emptySection=FALSE; - } - t << "

"; - //} - //else - //{ - // startGroupHeader(FALSE); - //} + if (!m_emptySection) + { + t << "

"; + m_emptySection=TRUE; + } + if (m_emptySection) + { + t << "" << endl; + m_emptySection=FALSE; + } + t << "" << endl; - //} - //else - //{ - // endGroupHeader(FALSE); - //} + t << "" << endl; } void HtmlGenerator::startMemberSubtitle() { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - t << "" << endl; + t << "" << endl; } void HtmlGenerator::startIndexList() @@ -3324,11 +3271,11 @@ void HtmlGenerator::lineBreak(const char *style) { if (style) { - t << "
" << endl; + t << "
" << endl; } else { - t << "
" << endl; + t << "
" << endl; } } diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 8476568..a1b23e8 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -1573,7 +1573,7 @@ void MemberDef::writeDeclaration(OutputList &ol, ); } bool htmlOn = ol.isEnabled(OutputGenerator::Html); - if (htmlOn && /*Config_getBool("HTML_ALIGN_MEMBERS") &&*/ !ltype.isEmpty()) + if (htmlOn && !ltype.isEmpty()) { ol.disable(OutputGenerator::Html); } diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp index 040a398..4ff5f9d 100644 --- a/src/vhdldocgen.cpp +++ b/src/vhdldocgen.cpp @@ -2222,7 +2222,7 @@ void VhdlDocGen::writeVHDLDeclaration(MemberDef* mdef,OutputList &ol, } bool htmlOn = ol.isEnabled(OutputGenerator::Html); - if (htmlOn && /*Config_getBool("HTML_ALIGN_MEMBERS") &&*/ !ltype.isEmpty()) + if (htmlOn && !ltype.isEmpty()) { ol.disable(OutputGenerator::Html); } -- cgit v0.12

"; if (anchor) { t << "" << endl; @@ -2350,28 +2306,19 @@ void HtmlGenerator::startMemberHeader(const char *anchor) void HtmlGenerator::endMemberHeader() { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - //{ - t << "

"; + t << "
"; } void HtmlGenerator::endMemberSubtitle() { DBG_HTML(t << "" << endl) - //if (Config_getBool("HTML_ALIGN_MEMBERS")) - t << "