diff options
author | albert-github <albert.tests@gmail.com> | 2019-08-16 10:46:21 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-08-16 10:46:21 (GMT) |
commit | cf82dae5f6a9fddcc24e9b7acc110f72fa0442df (patch) | |
tree | 039206e73b27e367e643323b73c0795ef2ee7dec /src/docparser.cpp | |
parent | 66ae8f62afbdc98c1c190fcc74a8263e7e6a0aa8 (diff) | |
download | Doxygen-cf82dae5f6a9fddcc24e9b7acc110f72fa0442df.zip Doxygen-cf82dae5f6a9fddcc24e9b7acc110f72fa0442df.tar.gz Doxygen-cf82dae5f6a9fddcc24e9b7acc110f72fa0442df.tar.bz2 |
Adding HTML s tag, XML corrections for other tags
Adding the HTML `<s>` tag (https://www.w3schools.com/tags/tag_s.asp).
Adding 's' and correcting 'inc' to 'ins' in compound.xsd
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index 9dd1c71..ad83aff 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -1020,6 +1020,7 @@ const char *DocStyleChange::styleString() const case DocStyleChange::Div: return "div"; case DocStyleChange::Span: return "span"; case DocStyleChange::Strike: return "strike"; + case DocStyleChange::S: return "s"; case DocStyleChange::Del: return "del"; case DocStyleChange::Underline: return "u"; case DocStyleChange::Ins: return "ins"; @@ -1171,7 +1172,7 @@ static void handleParameterType(DocNode *parent,QList<DocNode> &children,const Q { QCString name = g_token->name; // save token name QCString name1; - int p=0,i,l,ii; + int p=0,i,ii; while ((i=paramTypes.find('|',p))!=-1) { name1 = paramTypes.mid(p,i-p); @@ -1550,6 +1551,15 @@ reparsetoken: handleStyleLeave(parent,children,DocStyleChange::Bold,tokenName); } break; + case HTML_S: + if (!g_token->endTag) + { + handleStyleEnter(parent,children,DocStyleChange::S,&g_token->attribs); + } + else + { + handleStyleLeave(parent,children,DocStyleChange::S,tokenName); + } case HTML_STRIKE: if (!g_token->endTag) { @@ -5925,6 +5935,9 @@ int DocPara::handleHtmlStartTag(const QCString &tagName,const HtmlAttribList &ta case HTML_BOLD: handleStyleEnter(this,m_children,DocStyleChange::Bold,&g_token->attribs); break; + case HTML_S: + handleStyleEnter(this,m_children,DocStyleChange::S,&g_token->attribs); + break; case HTML_STRIKE: handleStyleEnter(this,m_children,DocStyleChange::Strike,&g_token->attribs); break; @@ -6346,6 +6359,9 @@ int DocPara::handleHtmlEndTag(const QCString &tagName) case HTML_BOLD: handleStyleLeave(this,m_children,DocStyleChange::Bold,"b"); break; + case HTML_S: + handleStyleLeave(this,m_children,DocStyleChange::S,"s"); + break; case HTML_STRIKE: handleStyleLeave(this,m_children,DocStyleChange::Strike,"strike"); break; |