xml/xslt: shellescape() the filename that is passed it

previously, checking an xml/xslt file called "foo bar.xml" would fail
This commit is contained in:
Martin Grenfell 2012-01-13 15:31:36 +00:00
parent 469e4efd0a
commit 2616623bb9
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ endif
function! SyntaxCheckers_xml_GetLocList()
let makeprg="xmllint --xinclude --noout --postvalid %"
let makeprg="xmllint --xinclude --noout --postvalid " . shellescape(expand("%:p"))
let errorformat='%E%f:%l:\ error\ :\ %m,
\%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m,
\%W%f:%l:\ warning\ :\ %m,

View File

@ -21,7 +21,7 @@ endif
function! SyntaxCheckers_xslt_GetLocList()
let makeprg="xmllint --xinclude --noout --postvalid %"
let makeprg="xmllint --xinclude --noout --postvalid " . shellescape(expand("%:p"))
let errorformat='%E%f:%l:\ error\ :\ %m,
\%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m,
\%W%f:%l:\ warning\ :\ %m,