]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.C
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetfoot.C
index 4b09114c098ee7930528626d548f36da176c1711..50f6af9a849ed9d3a094ead3b62193f8bab41b26 100644 (file)
@@ -21,6 +21,7 @@
 #include "support/LOstream.h"
 
 using std::ostream;
+using std::endl;
 
 InsetFoot::InsetFoot(Buffer * bf)
                : InsetCollapsable(bf)
@@ -54,15 +55,12 @@ char const * InsetFoot::EditMessage() const
 
 int InsetFoot::Latex(ostream & os, bool fragile, bool fp) const
 {
-    if (fragile) 
-       os << "\\footnote{"; // was footnotemark but that won't work
-    else 
-       os << "\\footnote{";
+    os << "\\footnote{%" << endl;
     
     int i = InsetText::Latex(os, fragile, fp);
-    os << "}";
+    os << "}%" << endl;
     
-    return i;
+    return i + 2;
 }