summaryrefslogtreecommitdiffstats
path: root/src/perlmodgen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2013-12-01 13:43:58 (GMT)
committeralbert-github <albert.tests@gmail.com>2013-12-01 13:43:58 (GMT)
commitd809d163b60a42850c0c4db72c1ba1ed7785416b (patch)
tree0011d7f28190c20c3cd8b594ed19fcbf0c5ce919 /src/perlmodgen.cpp
parent58058025a8357dcba0da4be0f6c3ddfec8c37839 (diff)
downloadDoxygen-d809d163b60a42850c0c4db72c1ba1ed7785416b.zip
Doxygen-d809d163b60a42850c0c4db72c1ba1ed7785416b.tar.gz
Doxygen-d809d163b60a42850c0c4db72c1ba1ed7785416b.tar.bz2
Bug 719639 - @xrefitem with empty heading string
Adjusted documentation and in case the title is the empty string in a DocXRefItem the visitPre and visitPost do nothing.
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r--src/perlmodgen.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp
index 81e41a8..dd0dbbb 100644
--- a/src/perlmodgen.cpp
+++ b/src/perlmodgen.cpp
@@ -1349,7 +1349,7 @@ void PerlModDocVisitor::visitPost(DocParamList *)
.closeHash();
}
-void PerlModDocVisitor::visitPre(DocXRefItem *)
+void PerlModDocVisitor::visitPre(DocXRefItem *x)
{
#if 0
m_output.add("<xrefsect id=\"");
@@ -1360,12 +1360,14 @@ void PerlModDocVisitor::visitPre(DocXRefItem *)
m_output.add("</xreftitle>");
m_output.add("<xrefdescription>");
#endif
+ if (!(x->title().length())) return;
openItem("xrefitem");
openSubBlock("content");
}
-void PerlModDocVisitor::visitPost(DocXRefItem *)
+void PerlModDocVisitor::visitPost(DocXRefItem *x)
{
+ if (!(x->title().length())) return;
closeSubBlock();
closeItem();
#if 0