From 6c4f10c375530d1baf82527787d4887cc343d9bb Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 12 Aug 2019 15:49:28 +0200 Subject: Table caption flows in first table field for RTF output See to it that the table caption is placed on top of the table and not in the first field. (See the doxygen documentation in respect to the tables; problem with tables in tables is a a different problem.) --- src/rtfdocvisitor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp index 43ac362..2b20e3d 100644 --- a/src/rtfdocvisitor.cpp +++ b/src/rtfdocvisitor.cpp @@ -1005,11 +1005,14 @@ void RTFDocVisitor::visitPost(DocHtmlTable *) void RTFDocVisitor::visitPre(DocHtmlCaption *) { DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlCaption)}\n"); + m_t << "\\pard \\qc \\b"; + m_t << "{Table \\field\\flddirty{\\*\\fldinst { SEQ Image \\\\*Arabic }}{\\fldrslt {\\noproof 1}} "; } void RTFDocVisitor::visitPost(DocHtmlCaption *) { DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocHtmlCaption)}\n"); + m_t << "}\n\\par" << endl; } void RTFDocVisitor::visitPre(DocHtmlRow *r) -- cgit v0.12