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
This commit is contained in:
José Matox 2004-09-25 12:26:07 +00:00
parent e5982ba00f
commit 1fbb68df78
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-09-24 Andreas Vox <vox@isp.uni-luebeck.de>
* insetref.C (docbook): fixing problem where Docbook XML output
had unclosed <xref ... >
2004-08-16 José Matos <jamatos@lyx.org>
* insethfill.C (write):

View File

@ -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 << "<xref linkend=\"" << getContents() << "\" />";
} else if (getOptions().empty()) {
os << "<xref linkend=\"" << getContents() << "\">";
} else {
os << "<link linkend=\"" << getContents()