forked from mirrors/org-mode
LaTeX/pdf processing: Quote file argument for the shell
* lisp/org-latex.el (org-export-as-pdf): Quote file argument for the shell. Patch by Gregory Grubbs.
This commit is contained in:
parent
7d2dc48b2a
commit
cdf08f347a
|
@ -836,7 +836,7 @@ when PUB-DIR is set, use this as the publishing directory."
|
||||||
(with-current-buffer outbuf (erase-buffer))
|
(with-current-buffer outbuf (erase-buffer))
|
||||||
(message "Processing LaTeX file...")
|
(message "Processing LaTeX file...")
|
||||||
(if (and cmds (symbolp cmds))
|
(if (and cmds (symbolp cmds))
|
||||||
(funcall cmds file)
|
(funcall cmds (shell-quote-argument file))
|
||||||
(while cmds
|
(while cmds
|
||||||
(setq cmd (pop cmds))
|
(setq cmd (pop cmds))
|
||||||
(while (string-match "%b" cmd)
|
(while (string-match "%b" cmd)
|
||||||
|
|
Loading…
Reference in New Issue