#include "gettext.h"
#include "lyxfont.h"
#include "BufferView.h"
-#include "lyxscreen.h"
#include "Painter.h"
#include "support/LOstream.h"
using std::ostream;
+using std::endl;
InsetFoot::InsetFoot(Buffer * bf)
: InsetCollapsable(bf)
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;
}