diff options
author | albert-github <albert.tests@gmail.com> | 2019-10-12 16:47:29 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-10-12 16:47:29 (GMT) |
commit | 056a6ba3de9b9a558ffa9c908bed28ae3494e121 (patch) | |
tree | b4b16dd5d15cc8fb1cf0b8798af0b5e73a043c0f /src/docparser.cpp | |
parent | 9a23681bc4322a1912fc98f683bcf3e49a85f47b (diff) | |
download | Doxygen-056a6ba3de9b9a558ffa9c908bed28ae3494e121.zip Doxygen-056a6ba3de9b9a558ffa9c908bed28ae3494e121.tar.gz Doxygen-056a6ba3de9b9a558ffa9c908bed28ae3494e121.tar.bz2 |
Warning when using empty p HTML tag
When we use the construct:
```
<p/>
```
we get the warning:
```
warning: HTML tags may not use the 'empty tag' XHTML syntax.
```
tough the construct is handled properly, so we can omit the warning.
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index da4cfb2..1b6dbca 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -5892,7 +5892,7 @@ 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_P) { warn_doc_error(g_fileName,doctokenizerYYlineno,"HTML tags may not use the 'empty tag' XHTML syntax."); } |