summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-10-20 18:23:06 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-10-20 18:23:06 (GMT)
commit7c34dd2b1594925d0a012e9ba290bf9c80574db5 (patch)
tree63a7ba72ad4f8318f818aebfef29beee5811c241 /src/docparser.cpp
parent2c6d31c8bf31028ba2f822c31f4812c2cecab306 (diff)
downloadDoxygen-7c34dd2b1594925d0a012e9ba290bf9c80574db5.zip
Doxygen-7c34dd2b1594925d0a012e9ba290bf9c80574db5.tar.gz
Doxygen-7c34dd2b1594925d0a012e9ba290bf9c80574db5.tar.bz2
Release-1.2.18-20021020
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp48
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);