mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
e5982ba00f
commit
1fbb68df78
@ -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):
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user