// 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";