diff options
Diffstat (limited to 'src/docbookvisitor.cpp')
-rw-r--r-- | src/docbookvisitor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/docbookvisitor.cpp b/src/docbookvisitor.cpp index 402f3c0..151f12d 100644 --- a/src/docbookvisitor.cpp +++ b/src/docbookvisitor.cpp @@ -1160,6 +1160,7 @@ void DocbookDocVisitor::visitPost(DocParamList *) void DocbookDocVisitor::visitPre(DocXRefItem *x) { if (m_hide) return; + if (!(x->title().length())) return; m_t << "<para><link linkend=\""; m_t << x->file() << "_1" << x->anchor(); m_t << "\">"; @@ -1168,9 +1169,10 @@ void DocbookDocVisitor::visitPre(DocXRefItem *x) m_t << " "; } -void DocbookDocVisitor::visitPost(DocXRefItem *) +void DocbookDocVisitor::visitPost(DocXRefItem *x) { if (m_hide) return; + if (!(x->title().length())) return; m_t << "</para>"; } |