From f9198b7a9b66073d5e21c2704a231e1f4a05433b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Tue, 22 Mar 2016 20:27:56 +0100 Subject: [PATCH] Rules: indentation: Fix B_SEQ instead of B_ENT For example in this case, the scalar's parent is a B_ENT (only its grandparent is a B_SEQ): - > multi line --- yamllint/rules/indentation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamllint/rules/indentation.py b/yamllint/rules/indentation.py index 6b5c4b5..2d953d5 100644 --- a/yamllint/rules/indentation.py +++ b/yamllint/rules/indentation.py @@ -233,7 +233,7 @@ def check_scalar_indentation(conf, token, context): elif token.style in ('"', "'"): return token.start_mark.column + 1 elif token.style in ('>', '|'): - if context['stack'][-1].type == B_SEQ: + if context['stack'][-1].type == B_ENT: # - > # multi # line