]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Remove hardcoded values
[lyx.git] / src / Converter.cpp
index e596b3d3c6aee2036495e526f66b99aeb9983e22..6057ccd78c9fce6312754ef64b8142c288236543 100644 (file)
@@ -285,8 +285,8 @@ bool Converters::checkAuth(Converter const & conv, string const & doc_fname)
                return true;
        const docstring security_warning = bformat(
              _("<p>The requested operation requires the use of a converter from "
-               "%2$s to %3$s:"
-               "<blockquote><tt>%1$s</tt></blockquote>"
+               "%2$s to %3$s:</p>"
+               "<blockquote><p><tt>%1$s</tt></p></blockquote>"
                "<p>This external program can execute arbitrary commands on your "
                "system, including dangerous ones, if instructed to do so by a "
                "maliciously crafted .lyx document.</p>"),
@@ -457,7 +457,7 @@ bool Converters::convert(Buffer const * buffer,
                                                   "tmpfile.out"));
                }
 
-               if (!checkAuth(conv, buffer->absFileName()))
+               if (!checkAuth(conv, buffer ? buffer->absFileName() : string()))
                        return false;
 
                if (conv.latex()) {