Skip to content

Commit

Permalink
Bug 646002 - htmlonly content appears in generated XML output
Browse files Browse the repository at this point in the history
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 6004d65
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/xmldocvisitor.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 6004d65

Please sign in to comment.