]> git.lyx.org Git - features.git/commitdiff
docbook:
authorJosé Matox <jamatos@lyx.org>
Wed, 3 Apr 2002 17:44:05 +0000 (17:44 +0000)
committerJosé Matox <jamatos@lyx.org>
Wed, 3 Apr 2002 17:44:05 +0000 (17:44 +0000)
  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

src/insets/ChangeLog
src/insets/insetfoot.C
src/insets/insetfoot.h
src/insets/insetlabel.C

index d14e4eb5bf3d85b8054377953702a4e4a6a5dd7f..d6ceb93948ad35b0600823757cc48e62365a8ec8 100644 (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
index 35e441c2793627084387fff3502b78431c52d5d7..cf1576383bd8d020e090045980130f04f68d3743 100644 (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;
+}
index 8c8895d62aaafb128c835873e4fd23f1f52203eb..e20155a7773227d0c3b6821cede0e1500397a780 100644 (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;
 };
 
index 9c61eb763ff0c30a0d67dbaadee1eddb6929b688..64c77d8a90fb48ad7434a012ab60050ea002a63d 100644 (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;
 }