We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ede470f + 03e1680 commit b48717eCopy full SHA for b48717e
linter.py
@@ -11,13 +11,17 @@
11
"""This module exports the HtmlTidy plugin class."""
12
13
from SublimeLinter.lint import Linter, util
14
+import shutil
15
16
17
class HtmlTidy(Linter):
18
19
"""Provides an interface to tidy."""
20
21
syntax = 'html'
- cmd = 'tidy -errors -quiet -utf8'
22
+ if shutil.which('tidy5'):
23
+ cmd = 'tidy5 -errors -quiet -utf8'
24
+ else:
25
+ cmd = 'tidy -errors -quiet -utf8'
26
regex = r'^line (?P<line>\d+) column (?P<col>\d+) - (?:(?P<error>Error)|(?P<warning>Warning)): (?P<message>.+)'
27
error_stream = util.STREAM_STDERR
0 commit comments