macros: Escape filename in RunPandoc()
[vimconf.git] / 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)