]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.C
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetfloatlist.C
index 6d11d93aa0b04536dff1d1ac6322ef0f12bc5ec1..a5d9ae19690f9ce28583eaed1df7e8467bbcd752 100644 (file)
@@ -79,7 +79,7 @@ void InsetFloatList::read(Buffer const & buf, LyXLex & lex)
 
        if (lex.eatLine()) {
                setParam("type", lex.getDocString());
-               lyxerr[Debug::INSETS] << "FloatList::float_type: "
+               LYXERR(Debug::INSETS) << "FloatList::float_type: "
                                      << to_ascii(getParam("type")) << endl;
                if (!floats.typeExist(to_ascii(getParam("type"))))
                        lex.printError("InsetFloatList: Unknown float type: `$$Token'");
@@ -99,7 +99,7 @@ void InsetFloatList::read(Buffer const & buf, LyXLex & lex)
 
 
 int InsetFloatList::latex(Buffer const & buf, odocstream & os,
-                         OutputParams const &) const
+                          OutputParams const &) const
 {
        FloatList const & floats = buf.params().getLyXTextClass().floats();
        FloatList::const_iterator cit = floats[to_ascii(getParam("type"))];
@@ -135,8 +135,7 @@ int InsetFloatList::plaintext(Buffer const & buffer, odocstream & os,
 
        buffer.tocBackend().writePlaintextTocList(to_ascii(getParam("type")), os);
 
-       os << "\n";
-       return 0;
+       return PLAINTEXT_NEWLINE;
 }