SublimeLinter / SublimeLinter-xmllint

SublimeLinter 3 plugin for XML, using xmllint.
MIT License
29 stars 6 forks source link

Linter not showing errors #7

Closed sebbuku closed 6 years ago

sebbuku commented 8 years ago

Hi the Linter is working great except when an ending tag is missing.

<?xml version="1.0" encoding="UTF-8"?>
<root>
    <abc>

</root>
SublimeLinter: xmllint: <unsaved> ['/usr/bin/xmllint', '--noout', '-'] 
SublimeLinter: xmllint: <unsaved> ['/usr/bin/xmllint', '--noout', '-'] 
SublimeLinter: xmllint output:
-:5: parser error : Opening and ending tag mismatch: abc line 3 and root
-:5: parser error : Premature end of data in tag root line 2 

In this case the linter is not showing any error. The only difference I can notice to all the other cases is that here the output of xmllint has 2 lines that begin with -:X: parser error : Thanks.

kaste commented 6 years ago

Proposed fix in #10