branch: elpa/typst-ts-mode
commit 938615efe54737e9be52ab1f0567e9856a4f4c5f
Merge: 9e95d143e51 aa08677d8cf
Author: Meow King <mr.meowk...@posteo.com>
Commit: Meow King <mr.meowk...@posteo.com>

    Merge pull request 'When compiling file, shell-escape input and output file 
names in the `compile` command' (#80) from 
bricka/typst-ts-mode:support-file-names-with-space into develop
    
    Reviewed-on: https://codeberg.org/meow_king/typst-ts-mode/pulls/80
---
 typst-ts-compile.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typst-ts-compile.el b/typst-ts-compile.el
index 7b88c75cf75..43ba894b4f2 100644
--- a/typst-ts-compile.el
+++ b/typst-ts-compile.el
@@ -55,8 +55,8 @@ When using a prefix argument or the optional argument PREVIEW,
   (compile
    (format "%s compile %s %s %s"
            typst-ts-compile-executable-location
-           (file-name-nondirectory buffer-file-name)
-           (typst-ts-compile-get-result-pdf-filename)
+           (shell-quote-argument (file-name-nondirectory buffer-file-name))
+           (shell-quote-argument (typst-ts-compile-get-result-pdf-filename))
            typst-ts-compile-options)
    'typst-ts-compilation-mode))
 

Reply via email to