From 600d5859d7bcb94b08ef656fd427914766ae9afe Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 3 Jan 2015 15:28:43 +0100 Subject: Bug 742230 - @todo paragraphs incorrectly placed in rtf output Start a new paragraph, in case not yet a new paragraph has been started. --- src/rtfdocvisitor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp index a11e42f..20fbf53 100644 --- a/src/rtfdocvisitor.cpp +++ b/src/rtfdocvisitor.cpp @@ -1414,6 +1414,11 @@ void RTFDocVisitor::visitPre(DocXRefItem *x) if (x->title().isEmpty()) return; bool anonymousEnum = x->file()=="@"; DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocXRefItem)}\n"); + if (!m_lastIsPara) + { + m_t << "\\par" << endl; + m_lastIsPara=TRUE; + } m_t << "{"; // start param list //m_t << "{\\b "; // start bold m_t << "{" << rtf_Style["Heading5"]->reference << endl; -- cgit v0.12