X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FPDFOptions.cpp;h=644f26e738bcfe49523dfd5991c8ece4d0b6c559;hb=99f2abf59fc88faeac69df6a64d0d2a3615c8972;hp=a4a4fcbe4b8abdba7b91eafa50457e4e8d6d4103;hpb=2eb75da023a138ba02258479b21341a0e745f524;p=lyx.git diff --git a/src/PDFOptions.cpp b/src/PDFOptions.cpp index a4a4fcbe4b..644f26e738 100644 --- a/src/PDFOptions.cpp +++ b/src/PDFOptions.cpp @@ -12,10 +12,11 @@ #include "PDFOptions.h" +#include "Lexer.h" + #include "support/convert.h" -#include "support/lstrings.h" #include "support/debug.h" -#include "Lexer.h" +#include "support/lstrings.h" #include #include @@ -137,7 +138,7 @@ void PDFOptions::writeLaTeX(odocstream & os, bool hyperref_already_provided) con hyperset += "\n pdfkeywords={" + keywords + "},"; if (!quoted_options.empty()){ hyperset += "\n "; - hyperset += quoted_options_get(); + hyperset += quoted_options; } hyperset = rtrim(hyperset,","); @@ -208,10 +209,10 @@ string PDFOptions::readToken(Lexer &lex, string const & token) } -// prepared for check -string PDFOptions::quoted_options_get() const +// check the string from UI +string PDFOptions::quoted_options_check(string const str) const { - return quoted_options; + return subst(str, "\n", ""); }