From ff677ecfdb35f135f570713cabcb23173b5c1b51 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Thu, 12 Feb 2009 02:37:14 +0000 Subject: [PATCH] InsetTabular.cpp: output the caption for docbook according to the docbook documentation http://docbook.org/tdg/en/html/caption.html and this example: http://sources.redhat.com/ml/docbook/2004-06/msg00017.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28463 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index daf4a3634b..4711725213 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -2513,13 +2513,24 @@ int Tabular::docbook(odocstream & os, OutputParams const & runparams) const //+ Long Tabular case + //+--------------------------------------------------------------------- + // output caption info + if (haveLTCaption()) { + os << "\n"; + ++ret; + for (row_type i = 0; i < row_info.size(); ++i) { + if (row_info[i].caption) { + ret += docbookRow(os, i, runparams); + } + } + os << "\n"; + ++ret; + } // output header info - if (haveLTHead() || haveLTFirstHead()|| haveLTCaption()) { + if (haveLTHead() || haveLTFirstHead()) { os << "\n"; ++ret; for (row_type i = 0; i < row_info.size(); ++i) { - if (row_info[i].endhead || row_info[i].endfirsthead - || row_info[i].caption) { + if (row_info[i].endhead || row_info[i].endfirsthead) { ret += docbookRow(os, i, runparams); } } -- 2.39.2