diff --git a/yamllint/rules/new_lines.py b/yamllint/rules/new_lines.py index 6dbd180..fc3d399 100644 --- a/yamllint/rules/new_lines.py +++ b/yamllint/rules/new_lines.py @@ -48,6 +48,6 @@ def check(conf, line): yield LintProblem(1, line.end - line.start + 1, 'wrong new line character: expected \\r\\n') else: - if line.buffer[line.end] == '\r': + if line.buffer[line.end] != '\n': yield LintProblem(1, line.end - line.start + 1, 'wrong new line character: expected \\n')