diff options
author | Jordan Brown <Cyberboss@users.noreply.github.com> | 2017-10-19 15:56:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 15:56:05 (GMT) |
commit | a3c5958b437b5dc9de91de5f40917ec53532b60a (patch) | |
tree | 7279bae560dd9d1f9078632f36f5accd341be204 | |
parent | af7dfa6d51dcbdbcba4196c244e4609ff249d83c (diff) | |
download | Doxygen-a3c5958b437b5dc9de91de5f40917ec53532b60a.zip Doxygen-a3c5958b437b5dc9de91de5f40917ec53532b60a.tar.gz Doxygen-a3c5958b437b5dc9de91de5f40917ec53532b60a.tar.bz2 |
Suppresses warning for XML <see langword="..."/>
-rw-r--r-- | src/docparser.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index 5bb28ea..d2d93c8 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -6122,9 +6122,20 @@ int DocPara::handleHtmlStartTag(const QCString &tagName,const HtmlAttribList &ta } } } + else if (findAttribute(tagHtmlAttribs,"langword",&cref)) // <see langword="..."/> or <see langworld="..."></see> + { + doctokenizerYYsetStatePara(); + DocLink *lnk = new DocLink(this,cref); + m_children.append(lnk); + QCString leftOver = lnk->parse(FALSE,TRUE); + if (!leftOver.isEmpty()) + { + m_children.append(new DocWord(this,leftOver)); + } + } else { - warn_doc_error(g_fileName,doctokenizerYYlineno,"Missing 'cref' attribute from <see> tag."); + warn_doc_error(g_fileName,doctokenizerYYlineno,"Missing 'cref' or 'langword' attribute from <see> tag."); } } break; |