Fixed the output of label, that is an empty element.
  output footnotes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3893 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2002-04-03 17:44:05 +00:00
parent c04225fdf1
commit c7db12d1ac
4 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-04-03 José Matos <jamatos@fep.up.pt>
* insetlabel.C (docbook): the anchor is an empty element in docbook.
* insetfoot.[Ch] (docbook): added forgotten method.
2002-04-03 Juergen Vigna <jug@sad.it>
* insettext.C (insetButtonPress): fix insetButtonPress events the same

View File

@ -65,3 +65,13 @@ int InsetFoot::latex(Buffer const * buf,
return i + 2;
}
int InsetFoot::docbook(Buffer const * buf, ostream & os) const
{
os << "<footnote>";
int const i = inset.docbook(buf, os);
os << "</footnote>";
return i;
}

View File

@ -37,6 +37,8 @@ public:
///
int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
///
int docbook(Buffer const *, std::ostream &) const;
///
string const editMessage() const;
};

View File

@ -97,6 +97,6 @@ int InsetLabel::linuxdoc(Buffer const *, ostream & os) const
int InsetLabel::docbook(Buffer const *, ostream & os) const
{
os << "<anchor id=\"" << getContents() << "\" ></anchor>";
os << "<anchor id=\"" << getContents() << "\">";
return 0;
}