summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.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/htmldocvisitor.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/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index 601b665..ecdafe6 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -1777,6 +1777,8 @@ void HtmlDocVisitor::visitPost(DocParamList *)
void HtmlDocVisitor::visitPre(DocXRefItem *x)
{
if (m_hide) return;
+ if (!(x->title().length())) return;
+
forceEndParagraph(x);
bool anonymousEnum = x->file()=="@";
if (!anonymousEnum)
@@ -1798,6 +1800,7 @@ void HtmlDocVisitor::visitPre(DocXRefItem *x)
void HtmlDocVisitor::visitPost(DocXRefItem *x)
{
if (m_hide) return;
+ if (!(x->title().length())) return;
m_t << "</dd></dl>" << endl;
forceStartParagraph(x);
}