From 8c565720187f27a325b6fa4e1f2fa8e92ae6615a Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 18 Feb 2020 15:43:05 +0100 Subject: Disappearing words in RTF output after a list When having the simple example: ``` First list - Item 1 1 Second list - Item 2 1 ``` in the RTF output the word `Second` disappears due to the fact that the is no space between a `\par` command and the word `Second` --- src/rtfdocvisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp index 75ac400..e1a9e31 100644 --- a/src/rtfdocvisitor.cpp +++ b/src/rtfdocvisitor.cpp @@ -677,7 +677,7 @@ void RTFDocVisitor::visitPost(DocAutoList *) if (!m_lastIsPara) m_t << "\\par"; m_t << "}" << endl; m_lastIsPara=TRUE; - if (!m_indentLevel) m_t << "\\par"; + if (!m_indentLevel) m_t << "\\par" << endl; } void RTFDocVisitor::visitPre(DocAutoListItem *) -- cgit v0.12