]> git.lyx.org Git - lyx.git/blobdiff - src/PDFOptions.cpp
infrastructure for 'graceful asserts'
[lyx.git] / src / PDFOptions.cpp
index a4a4fcbe4b8abdba7b91eafa50457e4e8d6d4103..644f26e738bcfe49523dfd5991c8ece4d0b6c559 100644 (file)
 
 #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 <sstream>
 #include <string>
@@ -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", "");
 }