]> git.lyx.org Git - lyx.git/blobdiff - src/bufferparams.C
remove noload/don't typeset
[lyx.git] / src / bufferparams.C
index 0d73595781c0de04710986b417685c4f103d3774..3ccf77567bc15e051102550e737986894c662732 100644 (file)
@@ -81,7 +81,7 @@ void BufferParams::writeFile(ostream & os) const
        // then the the preamble
        if (!preamble.empty()) {
                // remove '\n' from the end of preamble
-               string const tmppreamble = strip(preamble, '\n');
+               string const tmppreamble = rtrim(preamble, "\n");
                os << "\\begin_preamble\n"
                   << tmppreamble
                   << "\n\\end_preamble\n";