summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-08-03 16:33:14 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-08-03 16:33:14 (GMT)
commit3ecf263fa2cd5f6a1cbb06c3e34c5aa77b9a5b66 (patch)
treedad8144b4f89ad1ec8e3dd643e8d4c6d96086565 /src/docparser.cpp
parenta606bdd949a4d6d126cd9d3425f65c23e345b62e (diff)
parent83db204cd8839b0bbe49e9ba1dc90f7519e34f71 (diff)
downloadDoxygen-3ecf263fa2cd5f6a1cbb06c3e34c5aa77b9a5b66.zip
Doxygen-3ecf263fa2cd5f6a1cbb06c3e34c5aa77b9a5b66.tar.gz
Doxygen-3ecf263fa2cd5f6a1cbb06c3e34c5aa77b9a5b66.tar.bz2
Merge branch 'fetaure/bug_html_ins_del_tag' of https://github.com/albert-github/doxygen into albert-github-fetaure/bug_html_ins_del_tag
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index bfbd852..a18237e 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -1016,7 +1016,9 @@ const char *DocStyleChange::styleString() const
case DocStyleChange::Div: return "div";
case DocStyleChange::Span: return "span";
case DocStyleChange::Strike: return "strike";
+ case DocStyleChange::Del: return "del";
case DocStyleChange::Underline: return "u";
+ case DocStyleChange::Ins: return "ins";
}
return "<invalid>";
}
@@ -1546,6 +1548,16 @@ reparsetoken:
handleStyleLeave(parent,children,DocStyleChange::Strike,tokenName);
}
break;
+ case HTML_DEL:
+ if (!g_token->endTag)
+ {
+ handleStyleEnter(parent,children,DocStyleChange::Del,&g_token->attribs);
+ }
+ else
+ {
+ handleStyleLeave(parent,children,DocStyleChange::Del,tokenName);
+ }
+ break;
case HTML_UNDERLINE:
if (!g_token->endTag)
{
@@ -1556,6 +1568,16 @@ reparsetoken:
handleStyleLeave(parent,children,DocStyleChange::Underline,tokenName);
}
break;
+ case HTML_INS:
+ if (!g_token->endTag)
+ {
+ handleStyleEnter(parent,children,DocStyleChange::Ins,&g_token->attribs);
+ }
+ else
+ {
+ handleStyleLeave(parent,children,DocStyleChange::Ins,tokenName);
+ }
+ break;
case HTML_CODE:
case XML_C:
if (!g_token->endTag)
@@ -5894,9 +5916,15 @@ int DocPara::handleHtmlStartTag(const QCString &tagName,const HtmlAttribList &ta
case HTML_STRIKE:
handleStyleEnter(this,m_children,DocStyleChange::Strike,&g_token->attribs);
break;
+ case HTML_DEL:
+ handleStyleEnter(this,m_children,DocStyleChange::Del,&g_token->attribs);
+ break;
case HTML_UNDERLINE:
handleStyleEnter(this,m_children,DocStyleChange::Underline,&g_token->attribs);
break;
+ case HTML_INS:
+ handleStyleEnter(this,m_children,DocStyleChange::Ins,&g_token->attribs);
+ break;
case HTML_CODE:
if (/*getLanguageFromFileName(g_fileName)==SrcLangExt_CSharp ||*/ g_xmlComment)
// for C# source or inside a <summary> or <remark> section we
@@ -6309,9 +6337,15 @@ int DocPara::handleHtmlEndTag(const QCString &tagName)
case HTML_STRIKE:
handleStyleLeave(this,m_children,DocStyleChange::Strike,"strike");
break;
+ case HTML_DEL:
+ handleStyleLeave(this,m_children,DocStyleChange::Del,"del");
+ break;
case HTML_UNDERLINE:
handleStyleLeave(this,m_children,DocStyleChange::Underline,"u");
break;
+ case HTML_INS:
+ handleStyleLeave(this,m_children,DocStyleChange::Ins,"ins");
+ break;
case HTML_CODE:
handleStyleLeave(this,m_children,DocStyleChange::Code,"code");
break;