Permalink
Browse files

Suppresses warning for XML <see langword="..."/>

  • Loading branch information...
Cyberboss committed Oct 19, 2017
1 parent af7dfa6 commit a3c5958b437b5dc9de91de5f40917ec53532b60a
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/docparser.cpp
View
@@ -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;

0 comments on commit a3c5958

Please sign in to comment.