From 1fbb68df783f7079ea596bb66ec3a5af4de700e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matox?= Date: Sat, 25 Sep 2004 12:26:07 +0000 Subject: [PATCH] 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 --- src/insets/ChangeLog | 5 +++++ src/insets/insetref.C | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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 << "