+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):
#include "funcrequest.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
+#include "outputparams.h"
#include "frontends/LyXView.h"
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()