diff options
author | Francesco <francesco.bbt@gmail.com> | 2021-06-17 22:29:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 22:29:37 +0200 |
commit | 538e44f960762fe4619494c72b8737d6dc22c7ba (patch) | |
tree | 5222faa9f66f5dc802c76b6410865f88dc965a4a | |
parent | 081665d20f2ad1a9b8b516f24438fd73cd6324f3 (diff) | |
parent | eff60118b8bba6e71d6d6844ff026a8821cacfd3 (diff) | |
download | lite-xl-plugins-538e44f960762fe4619494c72b8737d6dc22c7ba.tar.gz lite-xl-plugins-538e44f960762fe4619494c72b8737d6dc22c7ba.zip |
Merge pull request #36 from ajalexei/master
pdfview.lua: bugfix -- handle correctly filenames with spaces
-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") |