Skip to content

Commit

Permalink
Suppresses warning for XML <see langword="..."/>
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Oct 19, 2017
1 parent af7dfa6 commit a3c5958
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/docparser.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a3c5958

Please sign in to comment.