macros: Escape filename in RunPandoc()
authorStefan Huber <shuber@sthu.org>
Tue, 29 Jan 2019 18:33:56 +0000 (19:33 +0100)
committerStefan Huber <shuber@sthu.org>
Tue, 29 Jan 2019 18:33:56 +0000 (19:33 +0100)
macros.vim

index 73ce12864cca1fefa1aaf7c031349ed54bca252c..cba6b844c37b1578f3d811bac9626e10b69e0e0a 100644 (file)
@@ -93,7 +93,7 @@ function RunPandoc()
     let cssopts = "-c pandoc.css"
   endif
 
-  execute ":!pandoc " . cssopts . " --self-contained --toc " . @% . " -o " . @% . ".html"
+  execute ":!pandoc " . cssopts . " --self-contained --toc '" . @% . "' -o '" . @% . "'.html"
 endfunction
 
 function RunMarkdownpy(prog)