fix(bin/linja): only strip flycheck message in linja
Removing empty lines for FlyCheck messages was added by
4266b8c7a3
. We had somecases where
Flycheck messages start with an empty line instead of `FLYCHECK_BEGIN
ERROR` in Windows7 + Python2 env. I think it's because of the different
newline character problem (LF, LFCR). My solution was to remove all
empty lines, which was too much. Now, I think striping should be enoguh.
fix #512
This commit is contained in:
parent
1b15036dba
commit
0cda3f7cbf
1 changed files with 1 additions and 2 deletions
|
@ -133,8 +133,7 @@ class FlycheckItem:
|
|||
return (self.filename, self.ty, self.lineno, self.colno)
|
||||
@classmethod
|
||||
def fromString(cls, target, text):
|
||||
# Filter out empty lines
|
||||
lines = [line for line in text.splitlines() if len(line) > 0]
|
||||
lines = text.strip().splitlines()
|
||||
# Throw the first and last lines (header/footer)
|
||||
lines = lines[1:-1]
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue