From: Enrico Forestieri Date: Wed, 27 May 2009 10:26:17 +0000 (+0000) Subject: This is a bit more descriptive. X-Git-Tag: 2.0.0~6434 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4d5f50bee2d47904557e8e2a439b43d789dfd7d8;p=lyx.git This is a bit more descriptive. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29864 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 5fc3573703..2dd4817e3e 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -1464,7 +1464,7 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features, + tmppreamble + '\n'; /* the user-defined preamble */ - if (preamble.find_first_not_of(" \n\t") != docstring::npos) + if (!containsOnly(preamble, " \n\t")) // FIXME UNICODE atlyxpreamble += "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% " "User specified LaTeX commands.\n"