X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FPDFOptions.cpp;h=644f26e738bcfe49523dfd5991c8ece4d0b6c559;hb=99f2abf59fc88faeac69df6a64d0d2a3615c8972;hp=31439575b28067b1a6e402dc8150ef75f6d44c01;hpb=2bf1c09376de37a3d66b79ca5f4304f29d5b4d06;p=lyx.git diff --git a/src/PDFOptions.cpp b/src/PDFOptions.cpp index 31439575b2..644f26e738 100644 --- a/src/PDFOptions.cpp +++ b/src/PDFOptions.cpp @@ -138,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,","); @@ -209,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", ""); }