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.
1 parent ede470f commit ec680d6Copy full SHA for ec680d6
linter.py
@@ -11,13 +11,16 @@
11
"""This module exports the HtmlTidy plugin class."""
12
13
from SublimeLinter.lint import Linter, util
14
-
+import shutil
15
16
class HtmlTidy(Linter):
17
18
"""Provides an interface to tidy."""
19
20
syntax = 'html'
21
- cmd = 'tidy -errors -quiet -utf8'
+ if shutils.which('tidy5'):
22
+ cmd = 'tidy5 -errors -quiet -utf8'
23
+ else:
24
+ cmd = 'tidy -errors -quiet -utf8'
25
regex = r'^line (?P<line>\d+) column (?P<col>\d+) - (?:(?P<error>Error)|(?P<warning>Warning)): (?P<message>.+)'
26
error_stream = util.STREAM_STDERR
0 commit comments