From: José Matox Date: Sat, 25 Sep 2004 12:26:07 +0000 (+0000) Subject: patch from Andreas Vox to fix unclosed tag in docbook-xml. X-Git-Tag: 1.6.10~15004 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1fbb68df783f7079ea596bb66ec3a5af4de700e5;p=features.git patch from Andreas Vox to fix unclosed tag in docbook-xml. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9005 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 5487284c36..95dbd12efa 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2004-09-24 Andreas Vox + + * insetref.C (docbook): fixing problem where Docbook XML output + had unclosed + 2004-08-16 José Matos * insethfill.C (write): diff --git a/src/insets/insetref.C b/src/insets/insetref.C index c5394d499d..f30f071022 100644 --- a/src/insets/insetref.C +++ b/src/insets/insetref.C @@ -18,6 +18,7 @@ #include "funcrequest.h" #include "gettext.h" #include "LaTeXFeatures.h" +#include "outputparams.h" #include "frontends/LyXView.h" @@ -110,9 +111,11 @@ int InsetRef::linuxdoc(Buffer const &, ostream & os, int InsetRef::docbook(Buffer const &, ostream & os, - OutputParams const &) const + OutputParams const & runparams) const { - if (getOptions().empty()) { + if (getOptions().empty() && runparams.flavor == OutputParams::XML) { + os << ""; + } else if (getOptions().empty()) { os << ""; } else { os << "