summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFilipe Alves <filipe.alves@bithium.com>2016-07-14 09:21:01 (GMT)
committerFilipe Alves <filipe.alves@bithium.com>2016-07-14 09:21:01 (GMT)
commitf075557bf207d67cf2638298cbdd843cc1a2f7d7 (patch)
tree574593fc70d01c3cd068a635ec8dc9f6b273785d /src
parent66f2844fafbaa2c2e143b70a6e61c20697651ff5 (diff)
downloadDoxygen-f075557bf207d67cf2638298cbdd843cc1a2f7d7.zip
Doxygen-f075557bf207d67cf2638298cbdd843cc1a2f7d7.tar.gz
Doxygen-f075557bf207d67cf2638298cbdd843cc1a2f7d7.tar.bz2
Add caption in verbatim blocks.
Diffstat (limited to 'src')
-rw-r--r--src/perlmodgen.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp
index 38ebbb2..8683654 100644
--- a/src/perlmodgen.cpp
+++ b/src/perlmodgen.cpp
@@ -667,6 +667,14 @@ void PerlModDocVisitor::visit(DocVerbatim *s)
case DocVerbatim::PlantUML: type = "plantuml"; break;
}
openItem(type);
+ if (s->hasCaption())
+ {
+ openSubBlock("caption");
+ QListIterator<DocNode> cli(s->children());
+ DocNode *n;
+ for (cli.toFirst();(n=cli.current());++cli) n->accept(this);
+ closeSubBlock();
+ }
m_output.addFieldQuotedString("content", s->text());
closeItem();
}