diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-10-20 18:23:06 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-10-20 18:23:06 (GMT) |
commit | dc404b516e366ca10ad325d399ef0bd47d065863 (patch) | |
tree | 63a7ba72ad4f8318f818aebfef29beee5811c241 /src/docparser.cpp | |
parent | 6bc4cd0ea321e784be64022fea5013e1b181a593 (diff) | |
download | Doxygen-dc404b516e366ca10ad325d399ef0bd47d065863.zip Doxygen-dc404b516e366ca10ad325d399ef0bd47d065863.tar.gz Doxygen-dc404b516e366ca10ad325d399ef0bd47d065863.tar.bz2 |
Release-1.2.18-20021020
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index 729dab4..097b30d 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -1740,6 +1740,33 @@ int DocHtmlHeader::parse() } goto endheader; } + else if (tagId==HTML_H4 && g_token->endTag) // found </h4> tag + { + if (m_level!=4) + { + warn(g_fileName,doctokenizerYYlineno,"Error: <h%d> ended with </h4>", + m_level); + } + goto endheader; + } + else if (tagId==HTML_H5 && g_token->endTag) // found </h5> tag + { + if (m_level!=5) + { + warn(g_fileName,doctokenizerYYlineno,"Error: <h%d> ended with </h5>", + m_level); + } + goto endheader; + } + else if (tagId==HTML_H6 && g_token->endTag) // found </h6> tag + { + if (m_level!=6) + { + warn(g_fileName,doctokenizerYYlineno,"Error: <h%d> ended with </h6>", + m_level); + } + goto endheader; + } else { warn(g_fileName,doctokenizerYYlineno,"Error: Unexpected html tag <%s%s> found within <h%d> context", @@ -3504,6 +3531,27 @@ int DocPara::handleHtmlStartTag(const QString &tagName,const HtmlAttribList &tag retval = header->parse(); } break; + case HTML_H4: + { + DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,4); + m_children.append(header); + retval = header->parse(); + } + break; + case HTML_H5: + { + DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,5); + m_children.append(header); + retval = header->parse(); + } + break; + case HTML_H6: + { + DocHtmlHeader *header = new DocHtmlHeader(this,tagHtmlAttribs,6); + m_children.append(header); + retval = header->parse(); + } + break; case HTML_IMG: { HtmlAttribListIterator li(tagHtmlAttribs); |