]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.cpp
Get InsetCollapsable working, at least to some extent.
[lyx.git] / src / BufferParams.cpp
index 5fc3573703ca42185a7f103e5e5acfbcfc9ceaaa..2dd4817e3e541fae1db1aedee68ac0a8683c1ab3 100644 (file)
@@ -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"