Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Fix for chktex line splitting format on Windows #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/linter-chktex.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports =
return []

lintFile: (filePath) ->
args = [filePath, '-q', '-I0', '-f%f:%l:%c:%d:%k:%n:%m\\n']
args = [filePath, '-q', '-I0', '-f%f:%l:%c:%d:%k:%n:%m\\n\\n']
if chktexArgs
for x in chktexArgs
args.push x
Expand All @@ -74,7 +74,7 @@ module.exports =
else
xcache.set(rawRegex, regex = XRegExp(rawRegex))
#for line in output.split(/\r?\n/)
for line in output.split('\\n')
for line in output.split('\\n\\n')
match = XRegExp.exec(line, regex)
if match
# console.log 'file ' + match.file
Expand Down