diff options
-rw-r--r-- | plugins/pdfview.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pdfview.lua b/plugins/pdfview.lua index 41e8ad0..743c6ec 100644 --- a/plugins/pdfview.lua +++ b/plugins/pdfview.lua @@ -20,7 +20,7 @@ command.add("core.docview", { local texfile = av:get_filename() texfile = string.gsub(texfile, '~', homedir) -- Construct the PDF file name out of the (La)Tex filename - local pdffile = string.gsub(texfile, ".tex", ".pdf") + local pdffile = "\"" .. string.gsub(texfile, ".tex", ".pdf") .. "\"" -- PDF viewer - is there any provided by the environment local pdfcmd = os.getenv("LITE_PDF_VIEWER") |