X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetfoot.C;h=50f6af9a849ed9d3a094ead3b62193f8bab41b26;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=4b09114c098ee7930528626d548f36da176c1711;hpb=82fa210ea8d38d51aafb131f10d843e27e056429;p=lyx.git diff --git a/src/insets/insetfoot.C b/src/insets/insetfoot.C index 4b09114c09..50f6af9a84 100644 --- a/src/insets/insetfoot.C +++ b/src/insets/insetfoot.C @@ -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; }