summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-01-05 11:19:00 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-01-05 11:19:00 (GMT)
commitafe51035be938b90b1790aa40937a93207ccdd34 (patch)
tree6fc7a78206a4b68e2f519a46f0104f8beb4391f9 /src
parentd6ab8a10db09394f2e8368b6f4e787910481f91c (diff)
downloadDoxygen-afe51035be938b90b1790aa40937a93207ccdd34.zip
Doxygen-afe51035be938b90b1790aa40937a93207ccdd34.tar.gz
Doxygen-afe51035be938b90b1790aa40937a93207ccdd34.tar.bz2
Showing information from all `*only commands in XML output
This fix reverts the changes from #381 (i.e issue #4214 "htmlonly content appears in generated XML output (Origin: bugzilla 646002)", as XML is seen as an output format that can be further processed and therefore should contain all possible information.
Diffstat (limited to 'src')
-rw-r--r--src/xmldocvisitor.cpp27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp
index 1e6becb..019bef1 100644
--- a/src/xmldocvisitor.cpp
+++ b/src/xmldocvisitor.cpp
@@ -265,11 +265,36 @@ void XmlDocVisitor::visit(DocVerbatim *s)
m_t << "</verbatim>";
break;
case DocVerbatim::HtmlOnly:
+ if (s->isBlock())
+ {
+ m_t << "<htmlonly block=\"yes\">";
+ }
+ else
+ {
+ m_t << "<htmlonly>";
+ }
+ filter(s->text());
+ m_t << "</htmlonly>";
+ break;
case DocVerbatim::RtfOnly:
+ m_t << "<rtfonly>";
+ filter(s->text());
+ m_t << "</rtfonly>";
+ break;
case DocVerbatim::ManOnly:
+ m_t << "<manonly>";
+ filter(s->text());
+ m_t << "</manonly>";
+ break;
case DocVerbatim::LatexOnly:
+ m_t << "<latexonly>";
+ filter(s->text());
+ m_t << "</latexonly>";
+ break;
case DocVerbatim::DocbookOnly:
- /* nothing */
+ m_t << "<docbookonly>";
+ filter(s->text());
+ m_t << "</docbookonly>";
break;
case DocVerbatim::XmlOnly:
m_t << s->text();