Permalink
Browse files

shellescaped(expand()) the filename passed to xmllint

  • Loading branch information...
1 parent 10bc9fe commit 3989481ba3a80208c8615ffe40c0687a3b1edc01 @darcyparker darcyparker committed Jan 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 syntax_checkers/docbk.vim
View
2 syntax_checkers/docbk.vim
@@ -21,7 +21,7 @@ endif
function! SyntaxCheckers_docbk_GetLocList()
- let makeprg="xmllint --xinclude --noout --postvalid %"
+ let makeprg="xmllint --xinclude --noout --postvalid ".shellescape(expand(%:p))
let errorformat='%E%f:%l: parser error : %m,%W%f:%l: parser warning : %m,%E%f:%l:%.%# validity error : %m,%W%f:%l:%.%# validity warning : %m,%-Z%p^,%-C%.%#,%-G%.%#'
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

0 comments on commit 3989481

Please sign in to comment.