Permalink
Browse files

Bug 646002 - htmlonly content appears in generated XML output

All the @*only comments appear in the xml document. In the other document formats only documentation of the relevant @*only (in HTML only @htmlonly) appears.
This patch corrects this so only the @XMLonly documentation appears.
  • Loading branch information...
albert-github committed Aug 12, 2015
1 parent 625e7a1 commit 6004d659c1ca280acc6588351176be63b55faf70
Showing with 2 additions and 20 deletions.
  1. +2 −20 src/xmldocvisitor.cpp
View
@@ -223,33 +223,15 @@ void XmlDocVisitor::visit(DocVerbatim *s)
m_t << "</verbatim>";
break;
case DocVerbatim::HtmlOnly:
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>";
case DocVerbatim::DocbookOnly:
/* nothing */
break;
case DocVerbatim::XmlOnly:
m_t << s->text();
break;
case DocVerbatim::DocbookOnly:
m_t << "<docbookonly>";
filter(s->text());
m_t << "</docbookonly>";
break;
case DocVerbatim::Dot:
visitPreStart(m_t, "dot", s->hasCaption(), this, s->children(), QCString(""), FALSE, DocImage::Html, s->width(), s->height());
filter(s->text());

0 comments on commit 6004d65

Please sign in to comment.