summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
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);