]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.C
* BufferParams:
[lyx.git] / src / insets / insetfoot.C
index f2d7c3c7650cfed1650e40df1dbf97f3e465d5b5..9b698b2ff8b66cac521ba5ab1b95f94b795d38cd 100644 (file)
@@ -75,6 +75,7 @@ int InsetFoot::latex(Buffer const & buf, odocstream & os,
 
        int const i = InsetText::latex(buf, os, runparams);
        os << "%\n}";
+       runparams_in.encoding = runparams.encoding;
 
        return i + 2;
 }
@@ -87,7 +88,7 @@ int InsetFoot::plaintext(Buffer const & buf, odocstream & os,
        InsetText::plaintext(buf, os, runparams);
        os << "\n]";
 
-       return 1 + runparams.linelen; // one char on a separate line
+       return PLAINTEXT_NEWLINE + 1; // one char on a separate line
 }