diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-10-14 18:03:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-14 18:03:35 (GMT) |
commit | dcd7b1d08f754edfb08361e0b7fb3d9e78c33f6b (patch) | |
tree | 53a22ceee52dfd4d5ea78ed3c5443b4880942003 | |
parent | d45b039164bd60f4adff0551a722b5a474e179ca (diff) | |
parent | ef3063ef59cb1f41f02d7658490b0e554bb7a288 (diff) | |
download | Doxygen-dcd7b1d08f754edfb08361e0b7fb3d9e78c33f6b.zip Doxygen-dcd7b1d08f754edfb08361e0b7fb3d9e78c33f6b.tar.gz Doxygen-dcd7b1d08f754edfb08361e0b7fb3d9e78c33f6b.tar.bz2 |
Merge pull request #7318 from albert-github/feature/bug_html_p_tag
Warning when using empty HTML tag
-rw-r--r-- | src/docparser.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index da4cfb2..5253b04 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -5892,9 +5892,10 @@ int DocPara::handleHtmlStartTag(const QCString &tagName,const HtmlAttribList &ta int retval=RetVal_OK; int tagId = Mappers::htmlTagMapper->map(tagName); if (g_token->emptyTag && !(tagId&XML_CmdMask) && - tagId!=HTML_UNKNOWN && tagId!=HTML_IMG && tagId!=HTML_BR) + tagId!=HTML_UNKNOWN && tagId!=HTML_IMG && tagId!=HTML_BR && tagId!=HTML_HR && tagId!=HTML_P) { - warn_doc_error(g_fileName,doctokenizerYYlineno,"HTML tags may not use the 'empty tag' XHTML syntax."); + warn_doc_error(g_fileName,doctokenizerYYlineno,"HTML tag ('<%s/>') may not use the 'empty tag' XHTML syntax.", + tagName.data()); } switch (tagId) { @@ -6439,7 +6440,7 @@ int DocPara::handleHtmlEndTag(const QCString &tagName) warn_doc_error(g_fileName,doctokenizerYYlineno,"Unexpected tag </img> found"); break; case HTML_HR: - warn_doc_error(g_fileName,doctokenizerYYlineno,"Unexpected tag </hr> found"); + warn_doc_error(g_fileName,doctokenizerYYlineno,"Illegal </hr> tag found\n"); break; case HTML_A: //warn_doc_error(g_fileName,doctokenizerYYlineno,"Unexpected tag </a> found"); |