#include "lyxrc.h"
#include "language.h"
#include "lyxtextclasslist.h"
+#include "lyxlex.h"
#include "support/lyxlib.h"
#include "support/lstrings.h"
// 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";
}
+LyXTextClass const & BufferParams::getLyXTextClass() const
+{
+ return textclasslist[textclass];
+}
+
+
void BufferParams::readPreamble(LyXLex & lex)
{
if (lex.getString() != "\\begin_preamble")