]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.C
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insettoc.C
index c959ee47c5aeaa0a96825bb6b2b57897dc78ca88..bf4268674d5a0e1422b3fc274e1309c5f5e65546 100644 (file)
@@ -17,6 +17,7 @@
 #include "funcrequest.h"
 #include "gettext.h"
 #include "metricsinfo.h"
+#include "outputparams.h"
 #include "TocBackend.h"
 
 #include "support/std_ostream.h"
@@ -56,19 +57,18 @@ InsetBase::Code InsetTOC::lyxCode() const
 
 
 int InsetTOC::plaintext(Buffer const & buffer, odocstream & os,
-                   OutputParams const &) const
+                        OutputParams const &) const
 {
        os << getScreenLabel(buffer) << "\n\n";
 
        buffer.tocBackend().writePlaintextTocList(getCmdName(), os);
 
-       os << "\n";
-       return 0;
+       return PLAINTEXT_NEWLINE;
 }
 
 
 int InsetTOC::docbook(Buffer const &, odocstream & os,
-                     OutputParams const &) const
+                      OutputParams const &) const
 {
        if (getCmdName() == "tableofcontents")
                os << "<toc></toc>";