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:
parent
469e4efd0a
commit
2616623bb9
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user